Return the maximum number of objects allocate can return.
Synopsis
Declared in <bslma_allocatortraits.h>
static
size_type
max_size(ALLOCATOR_TYPE const& basicAllocator) noexcept;
Description
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().
Return Value
largest number of objects that can reasonably be allocated
Parameters
Name |
Description |
basicAllocator |
allocator whose maximum size is queried |
Created with MrDocs