Skip to content

Commit b63b10a

Browse files
jensmaurerzygoloid
authored andcommitted
[variant.visit], [tuple.apply], [futures.task.members] add cross-references for INVOKE to [func.require]
Fixes #1480.
1 parent 8d45c56 commit b63b10a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/threads.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5038,7 +5038,7 @@
50385038
\begin{itemdescr}
50395039
\pnum
50405040
\requires
5041-
\tcode{\placeholdernc{INVOKE}<R>(f, t$_1$, t$_2$, $\dotsc$, t$_N$)}, where \tcode{t$_1$, t$_2$, $\dotsc$, t$_N$} are values
5041+
\tcode{\placeholdernc{INVOKE}<R>(f, t$_1$, t$_2$, $\dotsc$, t$_N$)} (\ref{func.require}), where \tcode{t$_1$, t$_2$, $\dotsc$, t$_N$} are values
50425042
of the corresponding types in \tcode{ArgTypes...}, shall be a valid expression. Invoking
50435043
a copy of \tcode{f} shall behave the same as invoking \tcode{f}.
50445044

@@ -5160,7 +5160,7 @@
51605160

51615161
\begin{itemdescr}
51625162
\pnum
5163-
\effects As if by \tcode{\placeholdernc{INVOKE}<R>(f, t$_1$, t$_2$, $\dotsc$, t$_N$)},
5163+
\effects As if by \tcode{\placeholdernc{INVOKE}<R>(f, t$_1$, t$_2$, $\dotsc$, t$_N$)} (\ref{func.require}),
51645164
where \tcode{f} is the
51655165
stored task of \tcode{*this} and
51665166
\tcode{t$_1$, t$_2$, $\dotsc$, t$_N$} are the values in \tcode{args...}. If the task returns normally,
@@ -5190,7 +5190,7 @@
51905190

51915191
\begin{itemdescr}
51925192
\pnum
5193-
\effects As if by \tcode{\placeholdernc{INVOKE}<R>(f, t$_1$, t$_2$, $\dotsc$, t$_N$)},
5193+
\effects As if by \tcode{\placeholdernc{INVOKE}<R>(f, t$_1$, t$_2$, $\dotsc$, t$_N$)} (\ref{func.require}),
51945194
where \tcode{f} is the stored task and
51955195
\tcode{t$_1$, t$_2$, $\dotsc$, t$_N$} are the values in \tcode{args...}. If the task returns normally,
51965196
the return value is stored as the asynchronous result in the shared state of

source/utilities.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@
21302130
template <class F, class Tuple, size_t... I>
21312131
constexpr decltype(auto)
21322132
apply_impl(F&& f, Tuple&& t, index_sequence<I...>) { // exposition only
2133-
return @\placeholdernc{INVOKE}@(std::forward<F>(f), std::get<I>(std::forward<Tuple>(t))...);
2133+
return @\placeholdernc{INVOKE}@(std::forward<F>(f), std::get<I>(std::forward<Tuple>(t))...); // see \ref{func.require}
21342134
}
21352135
\end{codeblock}
21362136
Equivalent to:
@@ -5288,7 +5288,7 @@
52885288
\pnum
52895289
\effects
52905290
Let \tcode{is...} be \tcode{vars.index()...}. Returns \tcode{\placeholdernc{INVOKE}(forward<Visitor>(vis), get<is>(}\brk{}
5291-
\tcode{forward<Variants>(vars))...);}.
5291+
\tcode{forward<Variants>(vars))...);} (\ref{func.require}).
52925292

52935293
\pnum
52945294
\remarks

0 commit comments

Comments
 (0)