Namespaces
Variants
Views
Actions

std::scoped_allocator_adaptor::scoped_allocator_adaptor

From cppreference.com
< cpp‎ | memory‎ | scoped allocator adaptor
Revision as of 15:18, 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 ">

<td >
scoped_allocator_adaptor()
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
template< class OuterA2 >
scoped_allocator_adaptor( OuterA2&& outerAlloc, const InnerAllocs&... innerAllocs)
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
scoped_allocator_adaptor( const scoped_allocator_adaptor& other )
</td>

<td > (3) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
scoped_allocator_adaptor( scoped_allocator_adaptor&& other )
</td>

<td > (4) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
template< class OuterA2 >
scoped_allocator_adaptor( const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& other )
</td>

<td > (5) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
template< class OuterA2 >
scoped_allocator_adaptor( scoped_allocator_adaptor<OuterA2, InnerAllocs...>&& other )
</td>

<td > (6) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

1) Default constructor: value-initializes the OuterAlloc base class and the inner allocator member object, if used by the implementation.

2) Constructs the base class OuterAlloc from std::forward<OuterA2>(outerAlloc), and the inner allocators with innerAllocs....

3) Copy-constructor: initializes each allocator from the corresponding allocator of other

4) Move-constructor: moves each allocator from the corresponding allocator of other into *this

5) Initializes each allocator from the corresponding allocator of other

6) Initializes each allocator from the corresponding allocator of other, using move semantics.

Parameters

outerAlloc - constructor argument for the outer allocator
innerAllocs... - constructor arguments for the inner allocators
other - another std::scoped_allocator_adaptor

Exceptions

2-6)
noexcept specification:  
noexcept
  

See also

Template:cpp/memory/scoped allocator adaptor/dcl list allocateTemplate:cpp/memory/scoped allocator adaptor/dcl list construct