Kiwano Engine  v1.2.x
kiwano::Allocator< _Ty > 模板类 参考

分配器 更多...

#include <Allocator.h>

struct  rebind
 

Public 类型

typedef _Ty value_type
 
typedef _Ty * pointer
 
typedef const _Ty * const_pointer
 
typedef _Ty & reference
 
typedef const _Ty & const_reference
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 

Public 成员函数

 Allocator (const Allocator &) noexcept=default
 
template<class _Other >
 Allocator (const Allocator< _Other > &) noexcept
 
_Ty * allocate (size_t count)
 
void * allocate (size_t count, const void *)
 
void deallocate (void *ptr, size_t count)
 
template<typename _UTy , typename... _Args>
void construct (_UTy *const ptr, _Args &&...args)
 
template<typename _UTy >
void destroy (_UTy *ptr)
 
size_t max_size () const noexcept
 
_Ty * address (_Ty &val) const noexcept
 
const _Ty * address (const _Ty &val) const noexcept
 

详细描述

template<typename _Ty>
class kiwano::Allocator< _Ty >

分配器