Przejdź do głównej zawartości

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

Since C++11
// 1)
inner_allocator_type& inner_allocator() noexcept;
// 2)
const inner_allocator_type& inner_allocator() const noexcept;

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.

Parameters

(none)

Return value

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

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

Since C++11
// 1)
inner_allocator_type& inner_allocator() noexcept;
// 2)
const inner_allocator_type& inner_allocator() const noexcept;

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.

Parameters

(none)

Return value

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