Skip to main content

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::outer_allocator

Since C++11
// 1)
outer_allocator_type& outer_allocator() noexcept;
// 2)
const outer_allocator_type& outer_allocator() const noexcept;

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.

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::outer_allocator

Since C++11
// 1)
outer_allocator_type& outer_allocator() noexcept;
// 2)
const outer_allocator_type& outer_allocator() const noexcept;

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.