From 6fe84caba29605d8445c039f585bd9951a0f3e03 Mon Sep 17 00:00:00 2001 From: Eelis van der Weegen Date: Sun, 28 Jul 2024 13:48:14 +0200 Subject: [PATCH] Avoid `for\-ward`. Because the 'for' gets highlighted as a keyword. --- source/algorithms.tex | 2 +- source/containers.tex | 16 ++++++++-------- source/ranges.tex | 4 ++-- source/threads.tex | 4 ++-- source/utilities.tex | 10 +++++----- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/source/algorithms.tex b/source/algorithms.tex index b6b8cdf13a..3022b8746d 100644 --- a/source/algorithms.tex +++ b/source/algorithms.tex @@ -11890,7 +11890,7 @@ \pnum \remarks The effects of \tcode{generate_random(r, g)} shall be equivalent to -\tcode{ranges::generate(std::for\-ward(r), ref(g))}. +\tcode{ranges::generate(std::forward(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()}. diff --git a/source/containers.tex b/source/containers.tex index 335461f106..8136d9bdef 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -10713,7 +10713,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)...)}. \pnum @@ -10751,7 +10751,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)...)}. \pnum @@ -10848,7 +10848,7 @@ \effects If the map already contains an element \tcode{e} whose key is equivalent to \tcode{k}, -assigns \tcode{std::for\-ward(obj)} to \tcode{e.second}. +assigns \tcode{std::forward(obj)} to \tcode{e.second}. Otherwise inserts an object of type \tcode{value_type} constructed with \tcode{k}, \tcode{std::forward(obj)}. @@ -10882,13 +10882,13 @@ \pnum \expects \tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{map} -from \tcode{std::move(k)}, \tcode{std::for\-ward(obj)}. +from \tcode{std::move(k)}, \tcode{std::forward(obj)}. \pnum \effects If the map already contains an element \tcode{e} whose key is equivalent to \tcode{k}, -assigns \tcode{std::for\-ward(obj)} to \tcode{e.second}. +assigns \tcode{std::forward(obj)} to \tcode{e.second}. Otherwise inserts an object of type \tcode{value_type} constructed with \tcode{std::\brk{}move(k)}, \tcode{std::forward(obj)}. @@ -12822,13 +12822,13 @@ \pnum \expects \tcode{value_type} is \oldconcept{EmplaceConstructible} into \tcode{unordered_map} -from \tcode{k}, \tcode{std::for\-ward(obj)}. +from \tcode{k}, \tcode{std::forward(obj)}. \pnum \effects If the map already contains an element \tcode{e} whose key is equivalent to \tcode{k}, -assigns \tcode{std::for\-ward(obj)} to \tcode{e.second}. +assigns \tcode{std::forward(obj)} to \tcode{e.second}. Otherwise inserts an object of type \tcode{value_type} constructed with \tcode{k}, \tcode{std::forward(obj)}. @@ -12868,7 +12868,7 @@ \effects If the map already contains an element \tcode{e} whose key is equivalent to \tcode{k}, -assigns \tcode{std::for\-ward(obj)} to \tcode{e.second}. +assigns \tcode{std::forward(obj)} to \tcode{e.second}. Otherwise inserts an object of type \tcode{value_type} constructed with \tcode{std::\brk{}move(k)}, \tcode{std::forward(obj)}. diff --git a/source/ranges.tex b/source/ranges.tex index f585d4db22..36ee86b6a9 100644 --- a/source/ranges.tex +++ b/source/ranges.tex @@ -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} @@ -11271,7 +11271,7 @@ \item Otherwise, if \tcode{\exposconcept{all-forward}} 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} diff --git a/source/threads.tex b/source/threads.tex index 156520e07e..e9bac1915e 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -11633,7 +11633,7 @@ \begin{itemize} \item If \tcode{launch::async} is set in \tcode{policy}, calls -\tcode{invoke(auto(std::forward(f)), auto(std::for\-ward(args))...)}\iref{func.invoke,thread.thread.constr} +\tcode{invoke(auto(std::forward(f)), auto(std::forward(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}. @@ -11651,7 +11651,7 @@ \item If \tcode{launch::deferred} is set in \tcode{policy}, stores \tcode{auto(std::forward(f))} and -\tcode{auto(std::for\-ward(args))...} +\tcode{auto(std::forward(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 diff --git a/source/utilities.tex b/source/utilities.tex index bf1c504010..9402c2ac1d 100644 --- a/source/utilities.tex +++ b/source/utilities.tex @@ -6807,7 +6807,7 @@ \effects Calls \tcode{reset()}. Then direct-non-list-initializes the contained value of type \tcode{VT} -with \tcode{std::for\-ward(args)...}. +with \tcode{std::forward(args)...}. \pnum \ensures @@ -9684,7 +9684,7 @@ If \tcode{has_value()} is \tcode{true}, \tcode{expected()}; otherwise, an \tcode{expected} 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), error())}. +\tcode{invoke(std::forward(f), error())}. \end{itemdescr} \indexlibrarymember{transform_error}{expected}% @@ -9712,7 +9712,7 @@ If \tcode{has_value()} is \tcode{true}, \tcode{expected()}; otherwise, an \tcode{expected} 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), std::move(error()))}. +\tcode{invoke(std::forward(f), std::move(error()))}. \end{itemdescr} \rSec3[expected.void.eq]{Equality operators} @@ -13762,7 +13762,7 @@ \ensures \tcode{*this} has a target object of type \tcode{VT} direct-non-list-initialized with -\tcode{ilist, std::for\-ward(args)...}. +\tcode{ilist, std::forward(args)...}. \pnum \throws @@ -14187,7 +14187,7 @@ \ensures \tcode{*this} has a target object of type \tcode{VT} direct-non-list-initialized with -\tcode{ilist, std::for\-ward(args)...}. +\tcode{ilist, std::forward(args)...}. \pnum \throws