Fallback max_size implementation when the allocator does not provide its own max_size member function.

Synopsis

Declared in <bslma_allocatortraits.h>

template<
    class T,
    class = void>
struct AllocatorTraits_CallMaxSize;

Type Aliases

Name

Description

SizeType

Alias to AllocatorTraits_SizeType<T>::type.

Static Member Functions

Name

Description

max_size

Return the maximum size of the specified (template) parameter T. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions.

Specializations