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> 의 public member function)
[static]
할당자가 지원하는 최대 객체 크기를 반환합니다
( std::allocator_traits<Alloc> 의 public static member function)