Namespaces
Variants
Actions

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

From cppreference.com
 
C++
 
Memory management library
(exposition only*)
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
(until C++20*)
(until C++20*)

Garbage collector support (until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
 
std::scoped_allocator_adaptor
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.

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]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant