BloombergLP::bslma::ConstructionUtil_AllocAdaptorUtil<TYPE, false, true>::adapt

adapt overloads

Synopses

Declared in <bslma_constructionutil.h>

Return the bslma::Allocator pointer held by the specified a object of non-pointer class. Compilation will fail if type ALLOC does not provide a mechanism() accessor returning a pointer to type convertible to bslma::Allocator *.

template<class ALLOC>
static
bslma::Allocator*
adapt(ALLOC const& a);
» more...

Return the specified alloc_p pointer, implicitly converted to bslma::Allocator *. Compilation will fail unless ALLOC is derived from bslma::Allocator.

template<class ALLOC>
static
bslma::Allocator*
adapt(ALLOC const*& alloc_p);
» more...