template< class Alloc > /* unspecified */ /*outermost*/( Alloc&& alloc = *this ); |
(1) | (exposition only*) |
template< class T, class... Args > void /*outermost-construct*/( T* p, Args&&... args ); |
(2) | (exposition only*) |
template< class T > void /*outermost-destroy*/( T* p ); |
(3) | (exposition only*) |
These exposition-only helper member function templates are used in member functions construct() and destroy().
alloc.
- If the expression
alloc.outer_allocator()is valid, returns.outermost(alloc.outer_allocator()) - Otherwise, returns
alloc.
*this.outermost ())>> as outermost_traits:outermost_traits::construct(outermost (), p, std::forward<Args>(args)...);.outermost_traits::destroy(outermost (), p);.Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3116 | C++11 | the recursion condition for outermost was “allochas the member function outer_allocator()”
|
changed to “the expressionalloc.outer_allocator() is valid”
|
See also
| [static] |
constructs an object in the allocated storage (function template) |
| [static] |
destructs an object stored in the allocated storage (function template) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.