8#ifndef INCLUDED_BSLMA_ALLOCATOR
9#define INCLUDED_BSLMA_ALLOCATOR
500#include <bslma_allocator.fwd.h>
523#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
595#ifndef BDE_OMIT_INTERNAL_DEPRECATED
655 template <class TYPE>
666 template <class TYPE>
747void *operator new(
std::
size_t size,
757void operator delete(
void *address,
817#ifndef BDE_OPENSOURCE_PUBLICATION
839void *
operator new(std::size_t size,
840 BloombergLP::bslma::Allocator& basicAllocator)
842 return basicAllocator.
allocate(size);
846void operator delete(
void *address,
847 BloombergLP::bslma::Allocator& basicAllocator)
849 basicAllocator.deallocate(address);
852#ifdef BSLS_PLATFORM_CMP_MSVC
853template <
class t_TYPE,
856 BloombergLP::bslma::Allocator>::value>::type>
857void *
operator new[](std::size_t
size, t_TYPE& basicAllocator)
Definition bslma_memoryresource.h:443
memory_resource() BSLS_KEYWORD_DEFAULT
Create this object. Has no effect other than to begin its lifetime.
Definition bslma_allocator.h:545
~Allocator() BSLS_KEYWORD_OVERRIDE
void * do_allocate(std::size_t bytes, std::size_t alignment) BSLS_KEYWORD_OVERRIDE
static void throwBadAlloc()
void deleteObjectRaw(const TYPE *object)
Definition bslma_allocator.h:804
virtual void deallocate(void *address)=0
bool do_is_equal(const memory_resource &other) const BSLS_KEYWORD_NOEXCEPT BSLS_KEYWORD_OVERRIDE
std::size_t size_type
Definition bslma_allocator.h:593
void deleteObject(const TYPE *object)
Definition bslma_allocator.h:790
virtual void * allocate(size_type size)=0
void do_deallocate(void *p, std::size_t bytes, std::size_t alignment) BSLS_KEYWORD_OVERRIDE
#define BSLA_DEPRECATED_MESSAGE(message)
Definition bsla_deprecated.h:310
#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_DELETED
Definition bsls_keyword.h:651
#define BSLS_KEYWORD_NOEXCEPT
Definition bsls_keyword.h:674
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:695
bsl::size_t size(const TYPE &array)
Return the number of elements in the specified array.
Definition bdlat_valuetypefunctions.h:939
BloombergLP::bsls::Nullptr_Impl::Type nullptr_t
Definition bsls_nullptr.h:283
Definition baljsn_encoder_testtypes.h:76
Definition bdldfp_decimal.h:5549
Definition bslmf_enableif.h:530
Definition bslmf_issame.h:146
static void deleteObject(const TYPE *object, ALLOCATOR *allocator)
Definition bslma_deleterhelper.h:204
static void deleteObjectRaw(const TYPE *object, ALLOCATOR *allocator)
Definition bslma_deleterhelper.h:225