BloombergLP::bslma::ConstructionUtil_AllocAdaptorUtil<TYPE, true, IS_BSLMA_AA>

This utility class template provides a static adapt method that adapts an allocator object to the type expected by TYPE. This partial specialization is instantiated for types that expect an allocator of type TYPE::allocator_type.

Synopsis

Declared in <bslma_constructionutil.h>

template<
    class TYPE,
    bool IS_BSLMA_AA>
struct ConstructionUtil_AllocAdaptorUtil<TYPE, true, IS_BSLMA_AA>;

Static Member Functions

NameDescription
adapt Return the specified a allocator, implicitly converted to TYPE::allocator_type. Compilation will fail if implicit conversion to the return type is invalid.