bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::max_size

The maximum supported allocation size

Synopsis

Declared in <bslma_allocatortraits.h>

constexpr
static
size_type
max_size(_Alloc const& __a) noexcept;

Description

Returns __a.max_size() if that expression is well-formed, otherwise returns numeric_limits<size_type>::max()

Return Value

__a.max_size() or numeric_limits<size_type>::max()

Parameters

NameDescription
__aAn allocator.