BloombergLP::bslma::AllocatorTraits_CallMaxSize::max_size

Return the maximum size of the specified (template) parameter T.

Synopsis

Declared in <bslma_allocatortraits.h>

static
SizeType
max_size(T const& alloc);

Description

Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions.

Return Value

maximum number of elements allocatable by T

Parameters

NameDescription
allocallocator ignored by the fallback implementation