Skip to content

Commit

Permalink
[lib] Refer to exposition-only function templates as templates, not f…
Browse files Browse the repository at this point in the history
…unctions (#6265)

 * [tuple.apply]/1, /4
 * [expected.object.assign]/1
 * [iterator.cust.swap]/2
 * [specialized.algorithms.general]/3
  • Loading branch information
lprv committed Jun 1, 2023
1 parent 4fac9f9 commit 1be4801
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10768,7 +10768,8 @@
before allowing the exception to propagate.

\pnum
Some algorithms specified in \ref{specialized.algorithms} make use of the exposition-only function
Some algorithms specified in \ref{specialized.algorithms}
make use of the exposition-only function template
\tcode{\placeholdernc{voidify}}:
\begin{codeblock}
template<class T>
Expand Down
2 changes: 1 addition & 1 deletion source/iterators.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@
arguments.

\pnum
Let \exposid{iter-exchange-move} be the exposition-only function:
Let \exposid{iter-exchange-move} be the exposition-only function template:
\begin{itemdecl}
template<class X, class Y>
constexpr iter_value_t<X> @\exposid{iter-exchange-move}@(X&& x, Y&& y)
Expand Down
6 changes: 3 additions & 3 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2639,7 +2639,7 @@
\begin{itemdescr}
\pnum
\effects
Given the exposition-only function:
Given the exposition-only function template:
\begin{codeblock}
namespace std {
template<class F, @\exposconcept{tuple-like}@ Tuple, size_t... I>
Expand Down Expand Up @@ -2681,7 +2681,7 @@

\pnum
\effects
Given the exposition-only function:
Given the exposition-only function template:
\begin{codeblock}
namespace std {
template<class T, @\exposconcept{tuple-like}@ Tuple, size_t... I>
Expand Down Expand Up @@ -7735,7 +7735,7 @@
\rSec3[expected.object.assign]{Assignment}

\pnum
This subclause makes use of the following exposition-only function:
This subclause makes use of the following exposition-only function template:
\begin{codeblock}
template<class T, class U, class... Args>
constexpr void @\exposid{reinit-expected}@(T& newval, U& oldval, Args&&... args) { // \expos
Expand Down

0 comments on commit 1be4801

Please sign in to comment.