8#ifndef INCLUDED_BSLMA_ALLOCATORADAPTOR
9#define INCLUDED_BSLMA_ALLOCATORADAPTOR
189#include <bslscm_version.h>
216template <
class STL_ALLOC>
225 typename STL_ALLOC::template rebind<MaxAlignedType>::other d_stlAllocator;
245#if defined(BSLS_COMPILERFEATURES_SUPPORT_DEFAULTED_FUNCTIONS)
280#ifdef BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES
286template <
class STL_ALLOC>
297template <
class STL_ALLOC>
301 typedef typename STL_ALLOC::template rebind<char>::other ReboundSTLAlloc;
333template <
class STL_ALLOC>
340template <
class STL_ALLOC>
344 : d_stlAllocator(stla)
348template <
class STL_ALLOC>
355template <
class STL_ALLOC>
362 size_type n = 1 + (size+
sizeof(MaxAlignedType)-1) /
sizeof(MaxAlignedType);
363 MaxAlignedType* p = d_stlAllocator.allocate(n);
368template <
class STL_ALLOC>
371 MaxAlignedType *p =
static_cast<MaxAlignedType*
>(address);
375 d_stlAllocator.deallocate(p, n);
379template <
class STL_ALLOC>
382 return d_stlAllocator;
385#ifndef BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES
392template <
class STL_ALLOC>
398template <
class STL_ALLOC>
Definition bslma_allocatoradaptor.h:217
STL_ALLOC StlAllocatorType
Definition bslma_allocatoradaptor.h:233
AllocatorAdaptor_Imp Type
Definition bslma_allocatoradaptor.h:232
Definition bslma_allocatoradaptor.h:300
~AllocatorAdaptor()=default
AllocatorAdaptor(const AllocatorAdaptor &)=default
Definition bslma_allocator.h:545
std::size_t size_type
Definition bslma_allocator.h:593
STL_ALLOC adaptedAllocator() const
Return a copy of the STL allocator stored within this object.
Definition bslma_allocatoradaptor.h:380
AllocatorAdaptor_Imp()
Definition bslma_allocatoradaptor.h:335
AllocatorAdaptor_Imp(const StlAllocatorType &stla)
Definition bslma_allocatoradaptor.h:342
AllocatorAdaptor()
Definition bslma_allocatoradaptor.h:394
~AllocatorAdaptor_Imp() BSLS_KEYWORD_OVERRIDE
Destroy this object and the STL-style allocator that it wraps.
Definition bslma_allocatoradaptor.h:350
void deallocate(void *address) BSLS_KEYWORD_OVERRIDE
Definition bslma_allocatoradaptor.h:369
void * allocate(size_type size) BSLS_KEYWORD_OVERRIDE
Definition bslma_allocatoradaptor.h:356
#define BSLMF_ASSERT(expr)
Definition bslmf_assert.h:231
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:695
Definition baljsn_encoder_testtypes.h:76
Definition bslmf_issame.h:146
AlignmentToType< BSLS_MAX_ALIGNMENT >::Type MaxAlignedType
Definition bsls_alignmentutil.h:307