adapt overloads

Synopses

Declared in <bslma_allocatorutil.h>

Return from adapted for initializing another AA object.

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

Return the bslma::Allocator pointer held by from.

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

Return Value

  • from unchanged

  • the bslma::Allocator pointer held by from

Parameters

Name

Description

from

allocator to adapt

Created with MrDocs