8#ifndef INCLUDED_BSLMA_ALLOCATORADAPTOR
9#define INCLUDED_BSLMA_ALLOCATORADAPTOR
184#include <bslscm_version.h>
211template <
class STL_ALLOC>
220 typename STL_ALLOC::template rebind<MaxAlignedType>::other d_stlAllocator;
240#if defined(BSLS_COMPILERFEATURES_SUPPORT_DEFAULTED_FUNCTIONS)
274#ifdef BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES
279template <
class STL_ALLOC>
290template <
class STL_ALLOC>
294 typedef typename STL_ALLOC::template rebind<char>::other ReboundSTLAlloc;
326template <
class STL_ALLOC>
333template <
class STL_ALLOC>
337 : d_stlAllocator(stla)
341template <
class STL_ALLOC>
348template <
class STL_ALLOC>
355 size_type n = 1 + (size+
sizeof(MaxAlignedType)-1) /
sizeof(MaxAlignedType);
356 MaxAlignedType* p = d_stlAllocator.allocate(n);
361template <
class STL_ALLOC>
364 MaxAlignedType *p =
static_cast<MaxAlignedType*
>(address);
368 d_stlAllocator.deallocate(p, n);
372template <
class STL_ALLOC>
375 return d_stlAllocator;
378#ifndef BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES
385template <
class STL_ALLOC>
391template <
class STL_ALLOC>
Definition bslma_allocatoradaptor.h:212
STL_ALLOC StlAllocatorType
Definition bslma_allocatoradaptor.h:228
AllocatorAdaptor_Imp Type
Definition bslma_allocatoradaptor.h:227
Definition bslma_allocatoradaptor.h:293
AllocatorAdaptor(const AllocatorAdaptor &)
Definition bslma_allocator.h:457
std::size_t size_type
Definition bslma_allocator.h:499
STL_ALLOC adaptedAllocator() const
Return a copy of the STL allocator stored within this object.
Definition bslma_allocatoradaptor.h:373
AllocatorAdaptor_Imp()
Definition bslma_allocatoradaptor.h:328
AllocatorAdaptor_Imp(const StlAllocatorType &stla)
Definition bslma_allocatoradaptor.h:335
AllocatorAdaptor()
Definition bslma_allocatoradaptor.h:387
~AllocatorAdaptor_Imp() BSLS_KEYWORD_OVERRIDE
Destroy this object and the STL-style allocator that it wraps.
Definition bslma_allocatoradaptor.h:343
void deallocate(void *address) BSLS_KEYWORD_OVERRIDE
Definition bslma_allocatoradaptor.h:362
void * allocate(size_type size) BSLS_KEYWORD_OVERRIDE
Definition bslma_allocatoradaptor.h:349
#define BSLMF_ASSERT(expr)
Definition bslmf_assert.h:229
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition balxml_encoderoptions.h:68
Definition bslmf_issame.h:146
AlignmentToType< BSLS_MAX_ALIGNMENT >::Type MaxAlignedType
Definition bsls_alignmentutil.h:282