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)
Definiert in Header <scoped_allocator>
size_type max_size ( ) const ;
(seit C++11)

Meldet die maximale Allokationsgröße, die vom äußeren Allokator unterstützt wird, durch Aufruf von std:: allocator_traits < OuterAlloc > :: max_size ( outer_allocator ( ) ) .

Parameter

(keine)

Rückgabewert

Die maximale Zuordnungsgröße für OuterAlloc.

Siehe auch

(bis C++20)
gibt die größte unterstützte Allokationsgröße zurück
(öffentliche Mitgliedsfunktion von std::allocator<T> )
[static]
gibt die maximale Objektgröße zurück, die vom Allokator unterstützt wird
(öffentliche statische Mitgliedsfunktion von std::allocator_traits<Alloc> )