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)
Défini dans l'en-tête <scoped_allocator>
inner_allocator_type & inner_allocator ( ) noexcept ;
(1) (depuis C++11)
const inner_allocator_type & inner_allocator ( ) const noexcept ;
(2) (depuis C++11)

Obtient une référence à l'allocateur interne utilisé pour déclarer cette scoped_allocator_adaptor .

Si sizeof... ( InnerAllocs ) == 0 , c'est-à-dire qu'aucun allocateur interne n'a été déclaré, retourne * this . Sinon, retourne une référence vers std:: scoped_allocator_adaptor < InnerAllocs... > , c'est-à-dire un allocateur à portée composé de tous les allocateurs internes de * this , le premier allocateur interne devenant l'allocateur externe.

Paramètres

(aucun)

Valeur de retour

Une référence à l'allocateur interne, qui est lui-même un std::scoped_allocator_adaptor .

Voir aussi

obtient une référence outer_allocator
(fonction membre publique)