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)
ヘッダーで定義 <scoped_allocator>
size_type max_size ( ) const ;
(C++11以降)

外側のアロケータがサポートする最大アロケーションサイズを報告します。これは std:: allocator_traits < OuterAlloc > :: max_size ( outer_allocator ( ) ) を呼び出すことで行われます。

パラメータ

(なし)

戻り値

OuterAllocの最大割り当てサイズ。

関連項目

(until C++20)
サポートされる最大の割り当てサイズを返す
( std::allocator<T> の公開メンバ関数)
[static]
アロケータがサポートする最大オブジェクトサイズを返す
( std::allocator_traits<Alloc> の公開静的メンバ関数)