std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::outer_allocator
From cppreference.com
< cpp | memory | scoped allocator adaptor
C++
Memory management library
|
|
std::scoped_allocator_adaptor
Member functions | ||||
scoped_allocator_adaptor::outer_allocator | ||||
Non-member functions | ||||
(until C++20) | ||||
Deduction guides(C++17) |
Defined in header <scoped_allocator> | ||
outer_allocator_type& outer_allocator()noexcept; | (1) | (since C++11) |
const outer_allocator_type& outer_allocator()constnoexcept; | (2) | (since C++11) |
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).
[edit]Parameters
(none)
[edit]Return value
A reference to OuterAlloc
.
[edit]See also
obtains an inner_allocator reference (public member function)[edit] |