Namespaces
Variants

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: inner_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)
Definiert im Header <scoped_allocator>
inner_allocator_type & inner_allocator ( ) noexcept ;
(1) (seit C++11)
const inner_allocator_type & inner_allocator ( ) const noexcept ;
(2) (seit C++11)

Ruft eine Referenz auf den inneren Allokator ab, der verwendet wird, um diesen scoped_allocator_adaptor zu deklarieren.

Falls sizeof... ( InnerAllocs ) == 0 , das heißt, keine inneren Allokatoren deklariert wurden, gibt * this zurück. Andernfalls gibt eine Referenz auf std:: scoped_allocator_adaptor < InnerAllocs... > zurück, das heißt, einen Scoped-Allokator, der aus allen inneren Allokatoren von * this besteht, wobei der erste innere Allokator zum äußeren Allokator wird.

Parameter

(keine)

Rückgabewert

Eine Referenz auf den inneren Allokator, der selbst ein std::scoped_allocator_adaptor ist.

Siehe auch

erhält eine outer_allocator Referenz
(öffentliche Mitgliedsfunktion)