Defined in header <scoped_allocator> | ||
---|---|---|
outer_allocator_type& outer_allocator() noexcept; | (1) | (since C++11) |
const outer_allocator_type& outer_allocator() const noexcept; | (2) | (since C++11) |
Obtains a reference to the outer allocator used to declare this class.
static_cast<OuterAlloc&>(*this)
.static_cast<const OuterAlloc&>(*this)
.(none).
A reference to OuterAlloc
.
obtains an inner_allocator reference (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/scoped_allocator_adaptor/outer_allocator