From c94d3bb7c8e84a1a5d01d53c4879692bdefbffea Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Wed, 29 Sep 2021 21:53:04 +0200 Subject: [PATCH] [tuple.apply] Move exposition-only functions to namespace std and remove superfluous std:: qualification. --- source/utilities.tex | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/source/utilities.tex b/source/utilities.tex index 01006242d9..2dbf5e8991 100644 --- a/source/utilities.tex +++ b/source/utilities.tex @@ -2015,10 +2015,12 @@ \effects Given the exposition-only function: \begin{codeblock} -template -constexpr decltype(auto) @\placeholdernc{apply-impl}@(F&& f, Tuple&& t, index_sequence) { +namespace std { + template + constexpr decltype(auto) @\placeholdernc{apply-impl}@(F&& f, Tuple&& t, index_sequence) { // \expos - return @\placeholdernc{INVOKE}@(std::forward(f), std::get(std::forward(t))...); // see \ref{func.require} + return @\placeholdernc{INVOKE}@(std::forward(f), get(std::forward(t))...); // see \ref{func.require} + } } \end{codeblock} Equivalent to: @@ -2039,10 +2041,12 @@ \effects Given the exposition-only function: \begin{codeblock} -template - requires is_constructible_v(declval()))...> -constexpr T @\placeholdernc{make-from-tuple-impl}@(Tuple&& t, index_sequence) { // \expos - return T(get(std::forward(t))...); +namespace std { + template + requires is_constructible_v(declval()))...> + constexpr T @\placeholdernc{make-from-tuple-impl}@(Tuple&& t, index_sequence) { // \expos + return T(get(std::forward(t))...); + } } \end{codeblock} Equivalent to: