Skip to content

[task.promise] Clarifications and disambiguations #8134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions source/exec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7648,27 +7648,27 @@
\begin{itemdescr}
\pnum
If there is no parameter with type \tcode{allocator_arg_t} then let
\tcode{\placeholder{alloc}} be \tcode{Allocator()}.
Let \tcode{\placeholder{arg_next}} be the parameter following the first
\tcode{allocator_arg_t} parameter (if any) and let \tcode{\placeholder{alloc}}
be \tcode{Allocator(\placeholder{arg_next})}.
Then \tcode{PAlloc} is \tcode{allocator_traits<Allocator>::template
re\-bind_alloc\brk{}<U>} where \tcode{U} is an unspecified type
whose size and alignment are both \tcode{__STDCPP_DEFAULT_NEW_ALIGNMENT__}.
\tcode{alloc} be \tcode{allocator_type()}.
Otherwise, let \tcode{arg_next} be the parameter
following the first \tcode{allocator_arg_t} parameter,
and let \tcode{alloc} be \tcode{allocator_type(arg_next)}.
Let \tcode{PAlloc} be \tcode{allocator_traits<allocator_type>::template
rebind_alloc<U>}, where \tcode{U} is an unspecified type
whose size and alignment are both \mname{STDCPP_DEFAULT_NEW_ALIGNMENT}.

\pnum
\mandates
\begin{itemize}
\item The first parameter of type \tcode{allocator_arg_t} (if any) is not the last parameter.
\item \tcode{Allocator(\placeholder{arg_next})} is a valid expression if there is a parameter
\item \tcode{allocator_type(arg_next)} is a valid expression if there is a parameter
of type \tcode{allocator_arg_t}.
\item \tcode{allocator_traits<PAlloc>::pointer} is a pointer type.
\end{itemize}

\pnum
\effects
Initializes an allocator \tcode{palloc} of type \tcode{PAlloc} with
\tcode{\placeholder{alloc}}.
\tcode{alloc}.
Uses \tcode{palloc} to allocate storage for the
smallest array of \tcode{U} sufficient to provide storage for a
coroutine state of size \tcode{size}, and unspecified additional
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy