Skip to content

Commit

Permalink
Avoid for\-ward.
Browse files Browse the repository at this point in the history
Because the 'for' gets highlighted as a keyword.
  • Loading branch information
Eelis committed Aug 10, 2024
1 parent 1243efa commit 0bfdc5f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11714,7 +11714,7 @@
\pnum
\remarks
The effects of \tcode{generate_random(r, g)} shall be equivalent to
\tcode{ranges::generate(std::for\-ward<R>(r), ref(g))}.
\tcode{ranges::generate(std::forward<R>(r), ref(g))}.
\begin{note}
This implies that \tcode{g.generate_random(a)} fills \tcode{a}
with the same values as produced by invocation of \tcode{g()}.
Expand Down
16 changes: 8 additions & 8 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10763,7 +10763,7 @@
\pnum
\expects
\tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{map}
from \tcode{piecewise_construct}, \tcode{for\-ward_as_tuple(k)},
from \tcode{piecewise_construct}, \tcode{forward_as_tuple(k)},
\tcode{forward_as_tuple(std::forward<Args>(args)...)}.

\pnum
Expand Down Expand Up @@ -10801,7 +10801,7 @@
\pnum
\expects
\tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{map}
from \tcode{piecewise_construct}, \tcode{for\-ward_as_tuple(std::move(k))},
from \tcode{piecewise_construct}, \tcode{forward_as_tuple(std::move(k))},
\tcode{forward_as_tuple(std::forward<Args>(args)...)}.

\pnum
Expand Down Expand Up @@ -10898,7 +10898,7 @@
\effects
If the map already contains an element \tcode{e}
whose key is equivalent to \tcode{k},
assigns \tcode{std::for\-ward<M>(obj)} to \tcode{e.second}.
assigns \tcode{std::forward<M>(obj)} to \tcode{e.second}.
Otherwise inserts an object of type \tcode{value_type}
constructed with \tcode{k}, \tcode{std::forward<M>(obj)}.

Expand Down Expand Up @@ -10932,13 +10932,13 @@
\pnum
\expects
\tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{map}
from \tcode{std::move(k)}, \tcode{std::for\-ward<M>(obj)}.
from \tcode{std::move(k)}, \tcode{std::forward<M>(obj)}.

\pnum
\effects
If the map already contains an element \tcode{e}
whose key is equivalent to \tcode{k},
assigns \tcode{std::for\-ward<M>(obj)} to \tcode{e.second}.
assigns \tcode{std::forward<M>(obj)} to \tcode{e.second}.
Otherwise inserts an object of type \tcode{value_type}
constructed with \tcode{std::\brk{}move(k)}, \tcode{std::forward<M>(obj)}.

Expand Down Expand Up @@ -12881,13 +12881,13 @@
\pnum
\expects
\tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{unordered_map}
from \tcode{k}, \tcode{std::for\-ward<M>(obj)}.
from \tcode{k}, \tcode{std::forward<M>(obj)}.

\pnum
\effects
If the map already contains an element \tcode{e}
whose key is equivalent to \tcode{k},
assigns \tcode{std::for\-ward<M>(obj)} to \tcode{e.second}.
assigns \tcode{std::forward<M>(obj)} to \tcode{e.second}.
Otherwise inserts an object of type \tcode{value_type}
constructed with \tcode{k}, \tcode{std::forward<M>(obj)}.

Expand Down Expand Up @@ -12927,7 +12927,7 @@
\effects
If the map already contains an element \tcode{e}
whose key is equivalent to \tcode{k},
assigns \tcode{std::for\-ward<M>(obj)} to \tcode{e.second}.
assigns \tcode{std::forward<M>(obj)} to \tcode{e.second}.
Otherwise inserts an object of type \tcode{value_type}
constructed with \tcode{std::\brk{}move(k)}, \tcode{std::forward<M>(obj)}.

Expand Down
4 changes: 2 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6649,7 +6649,7 @@
then \tcode{iterator_concept} denotes \tcode{bidirectio\-nal_iterator_tag}.
\item Otherwise, if \exposid{ref-is-glvalue} is \tcode{true} and
\exposid{Base} and \tcode{range_reference_t<\exposid{Base}>}
each model \libconceptx{for\-ward_range}{forward_range}, then \tcode{iterator_concept} denotes
each model \libconceptx{forward_range}{forward_range}, then \tcode{iterator_concept} denotes
\tcode{forward_iterator_tag}.
\item Otherwise, \tcode{iterator_concept} denotes \tcode{input_iterator_tag}.
\end{itemize}
Expand Down Expand Up @@ -11271,7 +11271,7 @@
\item
Otherwise,
if \tcode{\exposconcept{all-forward}<Const, Views...>} is modeled,
then \tcode{iterator_concept} denotes \tcode{for\-ward_iterator_tag}.
then \tcode{iterator_concept} denotes \tcode{forward_iterator_tag}.
\item
Otherwise, \tcode{iterator_concept} denotes \tcode{input_iterator_tag}.
\end{itemize}
Expand Down
4 changes: 2 additions & 2 deletions source/threads.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11636,7 +11636,7 @@
\begin{itemize}
\item
If \tcode{launch::async} is set in \tcode{policy}, calls
\tcode{invoke(auto(std::forward<F>(f)), auto(std::for\-ward<Args>(args))...)}\iref{func.invoke,thread.thread.constr}
\tcode{invoke(auto(std::forward<F>(f)), auto(std::forward<Args>(args))...)}\iref{func.invoke,thread.thread.constr}
as if in a new thread of execution represented by a \tcode{thread} object
with the values produced by \tcode{auto}
being materialized\iref{conv.rval} in the thread that called \tcode{async}.
Expand All @@ -11654,7 +11654,7 @@
\item
If \tcode{launch::deferred} is set in \tcode{policy},
stores \tcode{auto(std::forward<F>(f))} and
\tcode{auto(std::for\-ward<Args>(args))...}
\tcode{auto(std::forward<Args>(args))...}
in the shared state. These copies of \tcode{f} and \tcode{args} constitute
a \defnadj{deferred}{function}. Invocation of the deferred function evaluates
\tcode{invoke(std::move(g), std::move(xyz))} where \tcode{g} is the stored value of
Expand Down
10 changes: 5 additions & 5 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6810,7 +6810,7 @@
\effects
Calls \tcode{reset()}.
Then direct-non-list-initializes the contained value of type \tcode{VT}
with \tcode{std::for\-ward<Args>(args)...}.
with \tcode{std::forward<Args>(args)...}.

\pnum
\ensures
Expand Down Expand Up @@ -9687,7 +9687,7 @@
If \tcode{has_value()} is \tcode{true}, \tcode{expected<T, G>()}; otherwise, an
\tcode{expected<T, G>} object whose \exposid{has_val} member is \tcode{false}
and \exposid{unex} member is direct-non-list-initialized with
\tcode{invoke(std::for\-ward<F>(f), error())}.
\tcode{invoke(std::forward<F>(f), error())}.
\end{itemdescr}

\indexlibrarymember{transform_error}{expected<void>}%
Expand Down Expand Up @@ -9715,7 +9715,7 @@
If \tcode{has_value()} is \tcode{true}, \tcode{expected<T, G>()}; otherwise, an
\tcode{expected<T, G>} object whose \exposid{has_val} member is \tcode{false}
and \exposid{unex} member is direct-non-list-initialized with
\tcode{invoke(std::for\-ward<F>(f), std::move(error()))}.
\tcode{invoke(std::forward<F>(f), std::move(error()))}.
\end{itemdescr}

\rSec3[expected.void.eq]{Equality operators}
Expand Down Expand Up @@ -13766,7 +13766,7 @@
\ensures
\tcode{*this} has a target object of type \tcode{VT}
direct-non-list-initialized with
\tcode{ilist, std::for\-ward<Args>(args)...}.
\tcode{ilist, std::forward<Args>(args)...}.

\pnum
\throws
Expand Down Expand Up @@ -14191,7 +14191,7 @@
\ensures
\tcode{*this} has a target object of type \tcode{VT}
direct-non-list-initialized with
\tcode{ilist, std::for\-ward<Args>(args)...}.
\tcode{ilist, std::forward<Args>(args)...}.

\pnum
\throws
Expand Down

0 comments on commit 0bfdc5f

Please sign in to comment.