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

Name

Description

bsl::false_type

Metafunction representing the boolean constant false.

Specializations

Name

Description

ConstructionUtil_IsAllocatorPtr<ALLOC*>

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

Created with MrDocs