rapidjson::StdAllocator< T, BaseAllocator > 模板类 参考
类 rapidjson::StdAllocator< T, BaseAllocator > 继承关系图:

struct  rebind
 

Public 类型

typedef BaseAllocator BaseAllocatorType
 
typedef traits_type::size_type size_type
 
typedef traits_type::difference_type difference_type
 
typedef traits_type::value_type value_type
 
typedef traits_type::pointer pointer
 
typedef traits_type::const_pointer const_pointer
 
typedef allocator_type::reference reference
 
typedef allocator_type::const_reference const_reference
 

Public 成员函数

 StdAllocator (const StdAllocator &rhs) RAPIDJSON_NOEXCEPT
 
template<typename U >
 StdAllocator (const StdAllocator< U, BaseAllocator > &rhs) RAPIDJSON_NOEXCEPT
 
 StdAllocator (const BaseAllocator &allocator) RAPIDJSON_NOEXCEPT
 
pointer address (reference r) const RAPIDJSON_NOEXCEPT
 
const_pointer address (const_reference r) const RAPIDJSON_NOEXCEPT
 
size_type max_size () const RAPIDJSON_NOEXCEPT
 
void construct (pointer p, const_reference r)
 
void destroy (pointer p)
 
template<typename U >
U * allocate (size_type n=1, const void *=0)
 
template<typename U >
void deallocate (U *p, size_type n=1)
 
pointer allocate (size_type n=1, const void *=0)
 
void deallocate (pointer p, size_type n=1)
 
template<typename U >
bool operator== (const StdAllocator< U, BaseAllocator > &rhs) const RAPIDJSON_NOEXCEPT
 
template<typename U >
bool operator!= (const StdAllocator< U, BaseAllocator > &rhs) const RAPIDJSON_NOEXCEPT
 
void * Malloc (size_t size)
 
void * Realloc (void *originalPtr, size_t originalSize, size_t newSize)
 

静态 Public 成员函数

static void Free (void *ptr) RAPIDJSON_NOEXCEPT
 

静态 Public 属性

static const bool kNeedFree = BaseAllocator::kNeedFree
 rapidjson Allocator concept
 
static const bool kRefCounted = internal::IsRefCounted<BaseAllocator>::Value
 

友元

template<typename , typename >
class StdAllocator
 

该类的文档由以下文件生成: