We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd9fc2 commit 4c34e8cCopy full SHA for 4c34e8c
source/utilities.tex
@@ -4886,6 +4886,10 @@
4886
\end{itemdecl}
4887
4888
\begin{itemdescr}
4889
+\pnum
4890
+\constraints
4891
+\tcode{T} is a non-array object type.
4892
+
4893
\pnum
4894
Let \tcode{X} be \tcode{remove_cv_t<T>}.
4895
@@ -4899,6 +4903,14 @@
4899
4903
\begin{codeblock}
4900
4904
return has_value() ? *@\exposid{val}@ : static_cast<X>(std::forward<U>(u));
4901
4905
\end{codeblock}
4906
4907
4908
+\remarks
4909
+The return type is unspecified if
4910
+\tcode{T} is an array type or a non-object type.
4911
+\begin{note}
4912
+This is to avoid the declaration being ill-formed.
4913
+\end{note}
4902
4914
\end{itemdescr}
4915
4916
\rSec3[optional.ref.monadic]{Monadic operations}
0 commit comments