bsl::allocator_traits<allocator<TYPE>>::max_size

Return the maximum number of elements allocatable by m.

Synopsis

Declared in <bslma_bslallocator.h>

constexpr
static
size_type
max_size(allocator_type const& m);

Description

Return the maximum number of elements that the specified m allocator can allocate in a single call to allocate.

Return Value

maximum number of elements allocatable by m

Parameters

NameDescription
mallocator whose maximum size is returned