adapt overloads
Synopses
Declared in <bslma_constructionutil.h>
Return the bslma::Allocator pointer held by a.
template<class ALLOC>
static
bslma::Allocator*
adapt(ALLOC const& a);
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);
Return Value
-
the
bslma::Allocatorpointer held bya -
alloc_pconverted tobslma::Allocator *
Parameters
Name |
Description |
a |
allocator object providing a |
alloc_p |
pointer to an allocator derived from |
Created with MrDocs