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

Name

Description

__a

An allocator.

Created with MrDocs