std::allocator<T>::max_size
cppreference.net에서
size_type max_size() const throw();
|
(C++11까지) | |
size_type max_size() const noexcept;
|
(C++11부터) (C++17에서 폐기됨) (C++20에서 제거됨) |
|
이론적으로 가능한 최대 값n의, 해당 호출 allocate(n, 0) 이 성공할 수 있습니다.
대부분의 구현에서 이는 std::numeric_limits<size_type>::max() / sizeof(value_type)를 반환합니다.
반환값
지원되는 최대 할당 크기.
참고 항목
|
[static]
|
할당자가 지원하는 최대 객체 크기를 반환합니다
(
std::allocator_traits<Alloc>
의 public static 멤버 함수)
|