Namespaces
Variants
Views
Actions

std::scoped_allocator_adaptor::inner_allocator

From cppreference.com
< cpp‎ | memory‎ | scoped allocator adaptor
Revision as of 15:25, 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 >
inner_allocator_type& inner_allocator()
</td>

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

<td >
const inner_allocator_type& inner_allocator() const
</td>

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

Obtains a reference to the inner allocator used to declare this scoped_allocator_adaptor.

If sizeof...(InnerAllocs)==0, that is, no inner allocators were declared, returns *this. Otherwise returns a reference to std::scoped_allocator_adaptor<InnerAllocs...>, that is, a scoped allocator composed of all inner allocators of *this, with the first inner allocator becoming the outer allocator.

Contents

Parameters

(none)

Return value

A reference to the inner allocator, which is itself a std::scoped_allocator_adaptor.

Exceptions

1-2)
noexcept specification:  
noexcept
  

See also

Template:cpp/memory/scoped allocator adaptor/dcl list outer allocator