BloombergLP::bslma::AllocatorUtil::adapt

adapt overloads

Synopses

Declared in <bslma_allocatorutil.h>

Return the specified from allocator adapted to a type most likely to be usable for initializing another AA object. Specifically, return from.mechanism() if from is a specialization of bsl::allocator (or a class derived from bsl::allocator); otherwise return from unchanged.

template<class t_ALLOC>
static
t_ALLOC
adapt(t_ALLOC const& from)
requires ! IsDerivedFromBslAllocator<t_ALLOC>::value;
» more...

Return an allocator adapted from the specified allocator.

template<class t_TYPE>
static
bslma::Allocator*
adapt(bsl::allocator<t_TYPE> const& from);
» more...