다음을 통해 공유


allocator_traits::max_size 메서드

Static method that uses a specified allocator to determine the maximum number of objects that can be allocated.

static size_type max_size(const Alloc& al);

매개 변수

  • al
    An allocator object.

설명

This method returns al.max_size(), if that expression is well formed; otherwise it returns numeric_limits<size_type>::max().

요구 사항

헤더 <memory>

네임스페이스: std

참고 항목

참조

allocator::max_size

allocator_traits 클래스