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.
as_const
1 parent 6824e11 commit a820113Copy full SHA for a820113
source/utilities.tex
@@ -63,7 +63,7 @@
63
64
// \ref{utility.as.const}, \tcode{as_const}
65
template<class T>
66
- constexpr const T& as_const(T& t) noexcept;
+ constexpr add_const_t<T>& as_const(T& t) noexcept;
67
68
void as_const(const T&&) = delete;
69
@@ -495,7 +495,7 @@
495
496
\indexlibraryglobal{as_const}%
497
\begin{itemdecl}
498
-template<class T> constexpr const T& as_const(T& t) noexcept;
+template<class T> constexpr add_const_t<T>& as_const(T& t) noexcept;
499
\end{itemdecl}
500
501
\begin{itemdescr}
0 commit comments