|
7648 | 7648 | \begin{itemdescr}
|
7649 | 7649 | \pnum
|
7650 | 7650 | If there is no parameter with type \tcode{allocator_arg_t} then let
|
7651 |
| -\tcode{\placeholder{alloc}} be \tcode{Allocator()}. |
7652 |
| -Let \tcode{\placeholder{arg_next}} be the parameter following the first |
7653 |
| -\tcode{allocator_arg_t} parameter (if any) and let \tcode{\placeholder{alloc}} |
7654 |
| -be \tcode{Allocator(\placeholder{arg_next})}. |
7655 |
| -Then \tcode{PAlloc} is \tcode{allocator_traits<Allocator>::template |
7656 |
| -re\-bind_alloc\brk{}<U>} where \tcode{U} is an unspecified type |
7657 |
| -whose size and alignment are both \tcode{__STDCPP_DEFAULT_NEW_ALIGNMENT__}. |
| 7651 | +\tcode{alloc} be \tcode{allocator_type()}. |
| 7652 | +Otherwise, let \tcode{arg_next} be the parameter |
| 7653 | +following the first \tcode{allocator_arg_t} parameter, |
| 7654 | +and let \tcode{alloc} be \tcode{allocator_type(arg_next)}. |
| 7655 | +Let \tcode{PAlloc} be \tcode{allocator_traits<allocator_type>::template |
| 7656 | +rebind_alloc<U>}, where \tcode{U} is an unspecified type |
| 7657 | +whose size and alignment are both \mname{STDCPP_DEFAULT_NEW_ALIGNMENT}. |
7658 | 7658 |
|
7659 | 7659 | \pnum
|
7660 | 7660 | \mandates
|
7661 | 7661 | \begin{itemize}
|
7662 | 7662 | \item The first parameter of type \tcode{allocator_arg_t} (if any) is not the last parameter.
|
7663 |
| -\item \tcode{Allocator(\placeholder{arg_next})} is a valid expression if there is a parameter |
| 7663 | +\item \tcode{allocator_type(arg_next)} is a valid expression if there is a parameter |
7664 | 7664 | of type \tcode{allocator_arg_t}.
|
7665 | 7665 | \item \tcode{allocator_traits<PAlloc>::pointer} is a pointer type.
|
7666 | 7666 | \end{itemize}
|
7667 | 7667 |
|
7668 | 7668 | \pnum
|
7669 | 7669 | \effects
|
7670 | 7670 | Initializes an allocator \tcode{palloc} of type \tcode{PAlloc} with
|
7671 |
| -\tcode{\placeholder{alloc}}. |
| 7671 | +\tcode{alloc}. |
7672 | 7672 | Uses \tcode{palloc} to allocate storage for the
|
7673 | 7673 | smallest array of \tcode{U} sufficient to provide storage for a
|
7674 | 7674 | coroutine state of size \tcode{size}, and unspecified additional
|
|
0 commit comments