Return the maximum number of elements allocatable by this allocator.
Synopsis
Declared in <bslma_bslallocator.h>
constexpr
size_type
max_size() const;
Description
Return the maximum number of elements of (template parameter) TYPE that can be allocated using this allocator in a single call to allocate. Note that there is no guarantee that attempts at allocating fewer elements than the value returned by max_size will not throw.
Return Value
maximum number of elements allocatable by this allocator
Created with MrDocs