std::scoped_allocator_adaptor::outer_allocator

Defined in header <scoped_allocator>
outer_allocator_type& outer_allocator();
(1) (since C++11)
const outer_allocator_type& outer_allocator() const;
(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).

Parameters

(none).

Return value

A reference to OuterAlloc.

Exceptions

1-2)

noexcept specification:
noexcept

See also

obtains an inner_allocator reference
(public member function)
doc_CPP
2016-10-11 10:06:22
Comments
Leave a Comment

Please login to continue.