Return the maximum size of the specified alloc.

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 alloc

Parameters

Name

Description

alloc

allocator whose max_size member is invoked

Created with MrDocs