Namespaces
Variants
Views
Actions

std::scoped_allocator_adaptor::select_on_container_copy_construction

From cppreference.com
< cpp‎ | memory‎ | scoped allocator adaptor
Revision as of 16:15, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <scoped_allocator>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
scoped_allocator_adaptor select_on_container_copy_construction() const
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Creates a new instance of std::scoped_allocator_adaptor, where the outer allocator base class and each inner allocator subobject are obtained by calling std::allocator_traits<A>::select_on_container_copy_construction().

Parameters

(none)

Return value

A new std::scoped_allocator_adaptor object, constructed from correctly copied allocators.

See also

Template:cpp/memory/allocator traits/dcl list select on container copy construction