33#ifndef DVD_TEMPLATE_ALLOCATOR_H_
34#define DVD_TEMPLATE_ALLOCATOR_H_
36#include <EASTL/internal/config.h>
43 inline allocator::allocator(
const char* EASTL_NAME(
pName ) )
46 mpName =
pName ?
pName : EASTL_ALLOCATOR_DEFAULT_NAME;
51 inline allocator::allocator(
const allocator& EASTL_NAME( alloc ) )
54 mpName = alloc.mpName;
59 inline allocator::allocator(
const allocator&,
const char* EASTL_NAME(
pName ) )
62 mpName =
pName ?
pName : EASTL_ALLOCATOR_DEFAULT_NAME;
67 inline allocator& allocator::operator=(
const allocator& EASTL_NAME( alloc ) )
70 mpName = alloc.mpName;
76 inline const char* allocator::get_name()
const
81 return EASTL_ALLOCATOR_DEFAULT_NAME;
86 inline void allocator::set_name(
const char* EASTL_NAME(
pName ) )
94 inline void* allocator::allocate(
size_t n, [[maybe_unused]]
int flags )
99#define pName EASTL_ALLOCATOR_DEFAULT_NAME
105 inline void* allocator::allocate(
size_t n,
size_t alignment, [[maybe_unused]]
size_t offset, [[maybe_unused]]
int flags )
107 return mi_new_aligned(n, alignment);
112 inline void allocator::deallocate(
void* p,
size_t )
123#if !defined(EA_COMPILER_HAS_THREE_WAY_COMPARISON)
mi_stl_allocator< T > dvd_allocator
bool operator==(const allocator &, const allocator &)
bool operator!=(const allocator &, const allocator &)