Namespaces
Variants
Views
Actions

std::scoped_allocator_adaptor::outer_allocator

From cppreference.com
< cpp‎ | memory‎ | scoped allocator adaptor
Revision as of 16:21, 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 >
outer_allocator_type& outer_allocator()
</td>

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

<td >
const outer_allocator_type& outer_allocator() const
</td>

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

Obtains a reference to the outer allocator used to declare this class.

1) returns static_cast<OuterAlloc&>(*this)

2) returns static_cast<const OuterAlloc&>(*this)

Contents

Parameters

(none)

Return value

A reference to OuterAlloc

Exceptions

1-2)
noexcept specification:  
noexcept
  

See also

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