Return the maximum number of objects allocate can return.
Declared in <bslma_allocatortraits.h>
static
size_type
max_size(ALLOCATOR_TYPE const& basicAllocator) noexcept;
Return the largest number of value_type objects that could reasonably be returned by a single invocation of allocate for the specified allocator, i.e., allocator.max_size().
largest number of objects that can reasonably be allocated
| Name | Description |
|---|---|
| basicAllocator | allocator whose maximum size is queried |