Bagikan melalui


allocator_traits::max_size Method

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);

Parameters

  • al
    An allocator object.

Remarks

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

Requirements

Header: <memory>

Namespace: std

See Also

Reference

allocator::max_size

allocator_traits Class