Skip to content

Commit 30d257d

Browse files
committed
Avoid for\-ward.
Because the 'for' gets highlighted as a keyword.
1 parent db66c79 commit 30d257d

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

source/algorithms.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -11714,7 +11714,7 @@
1171411714
\pnum
1171511715
\remarks
1171611716
The effects of \tcode{generate_random(r, g)} shall be equivalent to
11717-
\tcode{ranges::generate(std::for\-ward<R>(r), ref(g))}.
11717+
\tcode{ranges::generate(std::forward<R>(r), ref(g))}.
1171811718
\begin{note}
1171911719
This implies that \tcode{g.generate_random(a)} fills \tcode{a}
1172011720
with the same values as produced by invocation of \tcode{g()}.

source/containers.tex

+8-8
Original file line numberDiff line numberDiff line change
@@ -10763,7 +10763,7 @@
1076310763
\pnum
1076410764
\expects
1076510765
\tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{map}
10766-
from \tcode{piecewise_construct}, \tcode{for\-ward_as_tuple(k)},
10766+
from \tcode{piecewise_construct}, \tcode{forward_as_tuple(k)},
1076710767
\tcode{forward_as_tuple(std::forward<Args>(args)...)}.
1076810768

1076910769
\pnum
@@ -10801,7 +10801,7 @@
1080110801
\pnum
1080210802
\expects
1080310803
\tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{map}
10804-
from \tcode{piecewise_construct}, \tcode{for\-ward_as_tuple(std::move(k))},
10804+
from \tcode{piecewise_construct}, \tcode{forward_as_tuple(std::move(k))},
1080510805
\tcode{forward_as_tuple(std::forward<Args>(args)...)}.
1080610806

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

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

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

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

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

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

source/ranges.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -6649,7 +6649,7 @@
66496649
then \tcode{iterator_concept} denotes \tcode{bidirectio\-nal_iterator_tag}.
66506650
\item Otherwise, if \exposid{ref-is-glvalue} is \tcode{true} and
66516651
\exposid{Base} and \tcode{range_reference_t<\exposid{Base}>}
6652-
each model \libconceptx{for\-ward_range}{forward_range}, then \tcode{iterator_concept} denotes
6652+
each model \libconceptx{forward_range}{forward_range}, then \tcode{iterator_concept} denotes
66536653
\tcode{forward_iterator_tag}.
66546654
\item Otherwise, \tcode{iterator_concept} denotes \tcode{input_iterator_tag}.
66556655
\end{itemize}
@@ -11271,7 +11271,7 @@
1127111271
\item
1127211272
Otherwise,
1127311273
if \tcode{\exposconcept{all-forward}<Const, Views...>} is modeled,
11274-
then \tcode{iterator_concept} denotes \tcode{for\-ward_iterator_tag}.
11274+
then \tcode{iterator_concept} denotes \tcode{forward_iterator_tag}.
1127511275
\item
1127611276
Otherwise, \tcode{iterator_concept} denotes \tcode{input_iterator_tag}.
1127711277
\end{itemize}

source/threads.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -11636,7 +11636,7 @@
1163611636
\begin{itemize}
1163711637
\item
1163811638
If \tcode{launch::async} is set in \tcode{policy}, calls
11639-
\tcode{invoke(auto(std::forward<F>(f)), auto(std::for\-ward<Args>(args))...)}\iref{func.invoke,thread.thread.constr}
11639+
\tcode{invoke(auto(std::forward<F>(f)), auto(std::forward<Args>(args))...)}\iref{func.invoke,thread.thread.constr}
1164011640
as if in a new thread of execution represented by a \tcode{thread} object
1164111641
with the values produced by \tcode{auto}
1164211642
being materialized\iref{conv.rval} in the thread that called \tcode{async}.
@@ -11654,7 +11654,7 @@
1165411654
\item
1165511655
If \tcode{launch::deferred} is set in \tcode{policy},
1165611656
stores \tcode{auto(std::forward<F>(f))} and
11657-
\tcode{auto(std::for\-ward<Args>(args))...}
11657+
\tcode{auto(std::forward<Args>(args))...}
1165811658
in the shared state. These copies of \tcode{f} and \tcode{args} constitute
1165911659
a \defnadj{deferred}{function}. Invocation of the deferred function evaluates
1166011660
\tcode{invoke(std::move(g), std::move(xyz))} where \tcode{g} is the stored value of

source/utilities.tex

+5-5
Original file line numberDiff line numberDiff line change
@@ -6810,7 +6810,7 @@
68106810
\effects
68116811
Calls \tcode{reset()}.
68126812
Then direct-non-list-initializes the contained value of type \tcode{VT}
6813-
with \tcode{std::for\-ward<Args>(args)...}.
6813+
with \tcode{std::forward<Args>(args)...}.
68146814

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

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

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

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

1419614196
\pnum
1419714197
\throws

0 commit comments

Comments
 (0)