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 c519b70 commit cdd04d6Copy full SHA for cdd04d6
source/lib-intro.tex
@@ -492,9 +492,11 @@
492
\indexlibrary{decay-copy@\tcode{\placeholder{decay-copy}}}%
493
\begin{codeblock}
494
namespace std {
495
- template<class T> constexpr decay_t<T> @\placeholdernc{decay-copy}@(T&& v)
496
- noexcept(is_nothrow_convertible_v<T, decay_t<T>>) // \expos
497
- { return std::forward<T>(v); }
+ template<class T>
+ requires @\libconcept{convertible_to}@<T, decay_t<T>>
+ constexpr decay_t<T> @\placeholdernc{decay-copy}@(T&& v)
498
+ noexcept(is_nothrow_convertible_v<T, decay_t<T>>) // \expos
499
+ { return std::forward<T>(v); }
500
501
constexpr auto @\placeholdernc{synth-three-way}@ =
502
[]<class T, class U>(const T& t, const U& u)
0 commit comments