Return the specified alloc_p pointer, implicitly converted to bslma::Allocator *. Compilation will fail unless ALLOC is derived from bslma::Allocator.
Synopsis
Declared in <bslma_constructionutil.h>
template<class ALLOC>
static
bslma::Allocator*
adapt(ALLOC const*& alloc_p);
Return Value
alloc_p converted to bslma::Allocator *
Parameters
Name |
Description |
alloc_p |
pointer to an allocator derived from |
Created with MrDocs