Namespaces
Variants

std::indirect<T, Allocator>:: get_allocator

From cppreference.net
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* )
( 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)
constexpr allocator_type get_allocator ( ) const noexcept ;
(seit C++26)

Ruft den zugehörigen Allokator ab.

Rückgabewert

alloc

Beispiel