BloombergLP::bslma::HasAllocatorType<TYPE, bsl::void_t<TYPE::allocator_type>>

Partial specialization of HasAllocatorType yielding true_type is instantiated for TYPEs that do have an allocator_type member that meets the requirements of a C++11 allocator type.

Synopsis

Declared in <bslma_hasallocatortype.h>

template<class TYPE>
struct HasAllocatorType<TYPE, bsl::void_t<TYPE::allocator_type>>
    : bslma::IsStdAllocator<TYPE::allocator_type>::type

Base Classes

NameDescription
bslma::IsStdAllocator<TYPE::allocator_type>::type