Skip to content

Commit 915f980

Browse files
committed
fixup: use \placeholder for various local variables and fix overfull hbox
1 parent 46b2370 commit 915f980

File tree

1 file changed

+57
-58
lines changed

1 file changed

+57
-58
lines changed

source/exec.tex

Lines changed: 57 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5732,23 +5732,23 @@
57325732
\end{codeblock}
57335733

57345734
\pnum
5735-
Let \tcode{out_sndr} be a subexpression denoting a sender
5735+
Let \tcode{\placeholder{out_sndr}} be a subexpression denoting a sender
57365736
returned from \tcode{affine_on(sndr, sch)} or one equal to such,
5737-
and let \tcode{OutSndr} be the type \tcode{decltype((out_sndr))}.
5738-
Let \tcode{out_rcvr} be a subexpression denoting a receiver that
5739-
has an environment of type \tcode{Env} such that \tcode{\libconcept{sender_in}<OutSndr, Env>}
5737+
and let \tcode{\placeholder{OutSndr}} be the type \tcode{decltype((\placeholder{out_sndr}))}.
5738+
Let \tcode{\placeholder{out_rcvr}} be a subexpression denoting a receiver that
5739+
has an environment of type \tcode{Env} such that \tcode{\libconcept{sender_in}<\placeholder{OutSndr}, Env>}
57405740
is \tcode{true}.
5741-
Let \tcode{op} be an lvalue referring to the operation state that
5742-
results from connecting \tcode{out_sndr} to \tcode{out_rcvr}.
5743-
Calling \tcode{start(op)} will start \tcode{sndr} on the current
5744-
execution agent and execute completion operations on \tcode{out_rcvr}
5741+
Let \tcode{\placeholder{op}} be an lvalue referring to the operation state that
5742+
results from connecting \tcode{\placeholder{out_sndr}} to \tcode{\placeholder{out_rcvr}}.
5743+
Calling \tcode{start(\placeholder{op})} will start \tcode{sndr} on the current
5744+
execution agent and execute completion operations on \tcode{\placeholder{out_rcvr}}
57455745
on an execution agent of the execution resource associated with
57465746
\tcode{sch}.
57475747
If the current execution resource is the same as the execution
57485748
resource associated with \tcode{sch}, the completion operation on
5749-
\tcode{out_rcvr} may be called before \tcode{start(op)} completes.
5749+
\tcode{\placeholder{out_rcvr}} may be called before \tcode{start(op)} completes.
57505750
If scheduling onto \tcode{sch} fails, an error completion on
5751-
\tcode{out_rcvr} shall be executed on an unspecified execution
5751+
\tcode{\placeholder{out_rcvr}} shall be executed on an unspecified execution
57525752
agent.
57535753

57545754
\rSec2[exec.inline.scheduler]{\tcode{execution::inline_scheduler}}
@@ -5794,22 +5794,22 @@
57945794
\tcode{((void)sndr, auto(rcvr))} is potentially-throwing, and
57955795
\item the expression
57965796
\tcode{get_completion_scheduler<set_value_t>(get_env(sndr))} has
5797-
type\brk{}\tcode{inline_scheduler} and is potentially-throwing
5797+
type\brk{} \tcode{inline_\-sched\-ul\-er} and is potentially-throwing
57985798
if and only if \tcode{get_env(sndr)} is potentially-throwing.
57995799
\end{itemize}
58005800

58015801
\pnum
5802-
Let \tcode{o} be a non-const lvalue of type
5803-
\tcode{\exposid{inline-state}<Rcvr>}, and let \tcode{REC(o)} be
5804-
a non-const lvalue reference to an object of type \tcode{Rcvr} that
5802+
Let \placeholder{o} be a non-\tcode{const} lvalue of type
5803+
\tcode{\exposid{inline-state}<Rcvr>}, and let \tcode{REC(@\placeholder{o}@)} be
5804+
a non-\tcode{const} lvalue reference to an object of type \tcode{Rcvr} that
58055805
was initialized with the expression \tcode{rcvr} passed to an
5806-
invocation of \tcode{connect} that returned \tcode{o}, then:
5806+
invocation of \tcode{connect} that returned \placeholder{o}, then:
58075807

58085808
\begin{itemize}
5809-
\item the object to which \tcode{REC(o)} refers remains valid for
5810-
the lifetime of the object to which \tcode{o} refers, and
5811-
\item the expression \tcode{start(o)} is equivalent to
5812-
\tcode{set_value(std::move(REC(o)))}.
5809+
\item the object to which \tcode{REC(@\placeholder{o}@)} refers remains valid for
5810+
the lifetime of the object to which \tcode{@\placeholder{o}@} refers, and
5811+
\item the expression \tcode{start(@\placeholder{o}@)} is equivalent to
5812+
\tcode{set_value(std::move(REC(@\placeholder{o}@)))}.
58135813
\end{itemize}
58145814

58155815
\rSec2[exec.task.scheduler]{\tcode{execution::task_scheduler}}
@@ -5860,7 +5860,7 @@
58605860
\pnum
58615861
\effects
58625862
Initialize \exposid{sch_} with
5863-
\tcode{allocate_shared<remove_cvref_t<Sch>>(alloc,\brk{} std::forward<Sch>(sch))}.
5863+
\tcode{allocate_shared<remove_cvref_t<Sch>>(alloc,\brk{} std::forward<Sch>\brk{}(sch))}.
58645864

58655865
\pnum
58665866
\recommended
@@ -5882,7 +5882,7 @@
58825882
\pnum
58835883
\effects
58845884
Returns an object of type \exposid{ts-sender} containing a sender
5885-
initialized with \tcode{sched\-ule(\brk{}\exposid{SCHED}(*this))}.
5885+
initialized with \tcode{sched\-ule(\brk{}\exposid{SCHED}\brk{}(*this))}.
58865886
\end{itemdescr}
58875887

58885888
\begin{itemdecl}
@@ -5933,10 +5933,10 @@
59335933
\end{codeblock}
59345934

59355935
\pnum
5936-
Let \tcode{sch} be an object of type \tcode{task_scheduler}
5936+
Let \tcode{\placeholder{sch}} be an object of type \tcode{task_scheduler}
59375937
and let \tcode{sndr} be an object of type \exposid{ts-sender} obtained
5938-
from \tcode{schedule(sch)}.
5939-
Then \tcode{get_completion_scheduler<set_value_t>(get_env(sndr)) == sch}
5938+
from \tcode{schedule(\placeholder{sch})}.
5939+
Then \tcode{get_completion_scheduler<set_value_t>(get_env(sndr)) == \placeholder{sch}}
59405940
is \tcode{true}.
59415941
The object \tcode{SENDER(sndr)} is the sender object contained by
59425942
\tcode{sndr} or an object move constructed from it.
@@ -5948,12 +5948,12 @@
59485948

59495949
\pnum
59505950
\effects
5951-
Let \tcode{r} be an object of a type that models \libconcept{receiver}
5951+
Let \tcode{\placeholder{r}} be an object of a type that models \libconcept{receiver}
59525952
and whose completion handlers result in invoking the corresponding
59535953
completion handlers of \tcode{rcvr} or copy thereof.
59545954
Returns an object of type \tcode{\exposid{state}<Rcvr>} containing
59555955
an operation state object initialized with \tcode{connect(SENDER(*this),
5956-
std::move(r))}.
5956+
std::move(\placeholder{r}))}.
59575957

59585958
\begin{codeblock}
59595959
template<@\libconcept{receiver}@ R>
@@ -6151,7 +6151,7 @@
61516151
\begin{itemdescr}
61526152
\pnum
61536153
The type \exposid{own-env-t} is \tcode{Environment::template
6154-
env_type<decltype(get_env(\brk{}declval<Rcvr>()))>} if that
6154+
env_type<decltype(get_env(\brk{}declval\brk{}<Rcvr>(\brk{})))\brk{}>} if that
61556155
qualified-id is valid and denotes a type, \tcode{env<>} otherwise.
61566156
\end{itemdescr}
61576157

@@ -6199,37 +6199,36 @@
61996199
\begin{itemdescr}
62006200
\pnum
62016201
\effects
6202-
Let \tcode{prom} be the object \tcode{\exposid{handle}.promise()}.
6203-
Associates \tcode{STATE(prom)}, \tcode{RCVR(prom)}, and \tcode{SCHED(prom)}
6202+
Let \tcode{\placeholder{prom}} be the object \tcode{\exposid{handle}.promise()}.
6203+
Associates \tcode{STATE(\placeholder{prom})}, \tcode{RCVR(\placeholder{prom})}, and \tcode{SCHED(\placeholder{prom})}
62046204
with \tcode{*this} as follows:
62056205

62066206
\begin{itemize}
6207-
\item \tcode{STATE(prom)} is \tcode{*this}.
6208-
\item \tcode{RCVR(prom)} is \exposid{rcvr}.
6209-
\item \tcode{SCHED(prom)} is the object initialized
6207+
\item \tcode{STATE(\placeholder{prom})} is \tcode{*this}.
6208+
\item \tcode{RCVR(\placeholder{prom})} is \exposid{rcvr}.
6209+
\item \tcode{SCHED(\placeholder{prom})} is the object initialized
62106210
with \tcode{scheduler_type(get_scheduler(get_env(\exposid{rcvr})))}
62116211
if that expression is valid and \tcode{scheduler_type()} otherwise.
62126212
If neither of these expressions is valid, the program is ill-formed.
62136213
\end{itemize}
62146214

6215-
Let \tcode{st} be \tcode{get_stop_token(get_env(\exposid{rcvr}))}.
6216-
Initializes \tcode{prom.\exposid{token}} and
6217-
\tcode{prom.\exposid{source}} such that
6215+
Let \tcode{\placeholder{st}} be \tcode{get_stop_token(get_env(\exposid{rcvr}))}.
6216+
Initializes \tcode{\placeholder{prom}.\exposid{token}} and
6217+
\tcode{\placeholder{prom}.\exposid{source}} such that
62186218

62196219
\begin{itemize}
62206220
\item
6221-
\tcode{prom.\exposid{token}.stop_requested()} returns
6222-
\tcode{st.stop_requested()};
6221+
\tcode{\placeholder{prom}.\exposid{token}.stop_requested()} returns
6222+
\tcode{\placeholder{st}.stop_requested()};
62236223
\item
6224-
\tcode{prom.\exposid{token}.stop_possible()} returns
6225-
\tcode{st.stop_possible()}; and
6224+
\tcode{\placeholder{prom}.\exposid{token}.stop_possible()} returns
6225+
\tcode{\placeholder{st}.stop_possible()}; and
62266226
\item
62276227
for types \tcode{Fn} and \tcode{Init} such that both
62286228
\tcode{\libconcept{invocable}<Fn>} and
62296229
\tcode{\libconcept{constructible_from}<Fn, Init>} are modeled,
62306230
\tcode{stop_token_type::callback_type<Fn>} models
6231-
\tcode{\exposconcept{stoppable-callback-for}<Fn,\brk{} stop_token_type, Init>}.
6232-
Init>}.
6231+
\tcode{\exposconcept{stoppable-callback-for}<Fn,\brk{} stop\-_token_type, Init>}.
62336232
\end{itemize}
62346233

62356234
After that invokes \tcode{\exposid{handle}.resume()}.
@@ -6301,11 +6300,11 @@
63016300
\end{codeblock}
63026301

63036302
\pnum
6304-
Let \tcode{prom} be an object of \tcode{promise_type} and let \tcode{tsk} be
6305-
the \tcode{task} object created by \tcode{prom.get_return_object()}.
6306-
The description below refers to objects \tcode{STATE(prom)},
6307-
\tcode{RCVR(prom)}, and \tcode{SCHED(prom)} associated
6308-
with \tcode{tsk} during evalutation of \tcode{task::\exposid{state}<Rcvr>::start}
6303+
Let \tcode{\placeholder{prom}} be an object of \tcode{promise_type} and let \tcode{\placeholder{tsk}} be
6304+
the \tcode{task} object created by \tcode{\placeholder{prom}.get_return_object()}.
6305+
The description below refers to objects \tcode{STATE(\placeholder{prom})},
6306+
\tcode{RCVR(\placeholder{prom})}, and \tcode{SCHED(\placeholder{prom})} associated
6307+
with \tcode{\placeholder{tsk}} during evalutation of \tcode{task::\exposid{state}<Rcvr>::start}
63096308
for some receiver \tcode{Rcvr}.
63106309

63116310
\pnum
@@ -6342,7 +6341,7 @@
63426341
\pnum
63436342
\returns
63446343
A \tcode{task} object whose member \exposid{handle} is
6345-
\tcode{coroutine_handle<promise_type>::\brk{}from_promise(*this)}.
6344+
\tcode{coroutine_handle<promise_type>::\brk{}from_promise\brk{}(*this)}.
63466345
\end{itemdescr}
63476346

63486347
\begin{itemdecl}
@@ -6396,15 +6395,15 @@
63966395
\mandates
63976396
\tcode{std::move(err.error)} is convertible to exactly one of the
63986397
\tcode{set_error_t} argument types of \tcode{error_types}.
6399-
Let \tcode{Cerr} be that type.
6398+
Let \tcode{\placeholder{Cerr}} be that type.
64006399

64016400
\pnum
64026401
\returns
64036402
An awaitable object of unspecified type\iref{expr.await} whose
64046403
member functions arrange for the calling coroutine to be suspended
64056404
and then completes the asynchronous operation associated with
64066405
\tcode{STATE(*this)} by invoking \tcode{set_error(std::move(RCVR(*this)),
6407-
Cerr(std::move(err.error)))}.
6406+
\placeholder{Cerr}(std::move(err.error)))}.
64086407
\end{itemdescr}
64096408

64106409
\begin{itemdecl}
@@ -6415,10 +6414,10 @@
64156414
\begin{itemdescr}
64166415
\pnum
64176416
\returns
6418-
If \tcode{@\libconcept{same_as}@<inline_scheduler, scheduler_type>} is \tcode{true}
6419-
returns \tcode{as_awaitable(\brk{}std::forward<Sender>(sndr), *this)};
6417+
If \tcode{\libconcept{same_as}<inline_scheduler, scheduler_type>} is \tcode{true}
6418+
returns \tcode{as_awaitable(\brk{}std::\brk{}for\-ward<Sender>(sndr), *this)};
64206419
otherwise returns
6421-
\tcode{as_awaitable(affine_on(\brk{}std::forward<Sender>(sndr), \exposid{SCHED}(*this)), *this)}.
6420+
\tcode{as_awaitable(affine_on(\brk{}std::\brk{}for\-ward<Sen\-der>(sndr), \exposid{SCHED}(*this)), *this)}.
64226421
\end{itemdescr}
64236422

64246423
\begin{itemdecl}
@@ -6493,10 +6492,10 @@
64936492
\begin{itemdescr}
64946493
\pnum
64956494
If there is no parameter with type \tcode{allocator_arg_t} then let
6496-
\tcode{alloc} be \tcode{Allocator()}.
6497-
Let \tcode{arg_next} be the parameter following the first
6498-
\tcode{allocator_arg_t} parameter (if any) and let \tcode{alloc}
6499-
be \tcode{Allocator(arg_next)}.
6495+
\tcode{\placeholder{alloc}} be \tcode{Allocator()}.
6496+
Let \tcode{\placeholder{arg_next}} be the parameter following the first
6497+
\tcode{allocator_arg_t} parameter (if any) and let \tcode{\placeholder{alloc}}
6498+
be \tcode{Allocator(\placeholder{arg_next})}.
65006499
Then \tcode{PAlloc} is \tcode{allocator_traits<Allocator>::template
65016500
re\-bind_alloc\brk{}<U>} where \tcode{U} is an unspecified type
65026501
whose size and alignment are both \tcode{__STDCPP_DEFAULT_NEW_ALIGNMENT__}.
@@ -6506,15 +6505,15 @@
65066505

65076506
\begin{itemize}
65086507
\item The first parameter of type \tcode{allocator_arg_t} (if any) is not the last parameter.
6509-
\item \tcode{Allocator(arg_next)} is a valid expression if there is a parameter
6508+
\item \tcode{Allocator(\placeholder{arg_next})} is a valid expression if there is a parameter
65106509
of type \tcode{allocator_arg_t}.
65116510
\item \tcode{allocator_traits<PAlloc>::pointer} is a pointer type.
65126511
\end{itemize}
65136512

65146513
\pnum
65156514
\effects
65166515
Initializes an allocator \tcode{palloc} of type \tcode{PAlloc} with
6517-
\tcode{alloc}.
6516+
\tcode{\placeholder{alloc}}.
65186517
Uses \tcode{palloc} to allocate storage for the
65196518
smallest array of \tcode{U} sufficient to provide storage for a
65206519
coroutine state of size \tcode{size}, and unspecified additional

0 commit comments

Comments
 (0)