##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::scoped_allocator_adaptor::inner_allocator

From cppreference.com
< cpp‎ | memory‎ | scoped allocator adaptor

Defined in header `<scoped_allocator>` |  |
inner_allocator_type& inner_allocator(); | (1) | (since C++11)
const inner_allocator_type& inner_allocator() const; | (2) | (since C++11)

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.

### [edit] Parameters

(none)

### [edit] Return value

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

### [edit] Exceptions

1-2)
`noexcept` specification:
noexcept

### [edit] See also

outer_allocator | obtains an `outer_allocator` reference (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/memory/scoped_allocator_adaptor/inner_allocator&oldid=91916"
Category:

- unconditionally noexcept

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template