|
BDE 4.39.x Production Release
|
#include <bslma_allocatoradaptor.h>
Polymorphic wrapper around an object of the specified STL_ALLOC STL-style allocator template parameter. A pointer to an object of this class can thus be used with any component that uses BDE-style memory allocation.
AllocatorAdaptor<A>::Type is the same type regardless of whether or not the compiler supports alias templates. It should be used, therefore, whenever the exact type of the adaptor is important. Additional Inherited Members | |
Public Types inherited from bslma::AllocatorAdaptor_Imp< STL_ALLOC::template rebind< char >::other > | |
| typedef AllocatorAdaptor_Imp | Type |
| typedef STL_ALLOC | StlAllocatorType |
Public Types inherited from bslma::Allocator | |
| typedef std::size_t | size_type |
Static Public Member Functions inherited from bslma::Allocator | |
| static void | throwBadAlloc () |
Protected Member Functions inherited from bslma::Allocator | |
| void * | do_allocate (std::size_t bytes, std::size_t alignment) BSLS_KEYWORD_OVERRIDE |
| void | do_deallocate (void *p, std::size_t bytes, std::size_t alignment) BSLS_KEYWORD_OVERRIDE |
| bool | do_is_equal (const memory_resource &other) const BSLS_KEYWORD_NOEXCEPT BSLS_KEYWORD_OVERRIDE |
|
default |
|
default |