Namespaces
Variants

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

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>
size_type max_size ( ) const ;
(depuis C++11)

Rapporte la taille d'allocation maximale prise en charge par l'allocateur externe, en appelant std:: allocator_traits < OuterAlloc > :: max_size ( outer_allocator ( ) ) .

Paramètres

(aucun)

Valeur de retour

La taille d'allocation maximale pour OuterAlloc.

Voir aussi

(until C++20)
retourne la taille d'allocation maximale prise en charge
(fonction membre publique de std::allocator<T> )
[static]
retourne la taille maximale d'objet prise en charge par l'allocateur
(fonction membre publique statique de std::allocator_traits<Alloc> )