BloombergLP::bslma::ConstructionUtil_IsAllocatorPtr

Metafunction that inherits from true_type if the ALLOC type is a pointer to bslma::Allocator or a class derived from it and false_type otherwise.

Synopsis

Declared in <bslma_constructionutil.h>

template<class ALLOC>
struct ConstructionUtil_IsAllocatorPtr
    : bsl::false_type

Base Classes

NameDescription
bsl::false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
ConstructionUtil_IsAllocatorPtr<ALLOC*> This partial specialization is for pointer type ALLOC * and evaulates true if and only if ALLOC is derived from bslma::Allocator.