NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::SecureAllocator< T > 模板类 参考

#include <allocator.h>

struct  rebind
 

Public 类型

using value_type = T
 
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 

Public 成员函数

pointer allocate (size_type n)
 
void deallocate (volatile pointer p, size_type n)
 
template<typename... Args>
void construct (pointer p, Args &&... args)
 
size_type max_size () const
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
void destroy (pointer p)
 
 SecureAllocator ()
 
template<typename U >
 SecureAllocator (const SecureAllocator< U > &)
 

成员类型定义说明

◆ const_pointer

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::const_pointer = const T*

◆ const_reference

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::const_reference = const T&

◆ difference_type

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::difference_type = std::ptrdiff_t

◆ pointer

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::pointer = T*

◆ reference

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::reference = T&

◆ size_type

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::size_type = std::size_t

◆ value_type

template<typename T >
using nim_cpp_wrapper_util::Json::SecureAllocator< T >::value_type = T

构造及析构函数说明

◆ SecureAllocator() [1/2]

template<typename T >
nim_cpp_wrapper_util::Json::SecureAllocator< T >::SecureAllocator ( )
inline

◆ SecureAllocator() [2/2]

template<typename T >
template<typename U >
nim_cpp_wrapper_util::Json::SecureAllocator< T >::SecureAllocator ( const SecureAllocator< U > &  )
inline

成员函数说明

◆ address() [1/2]

template<typename T >
const_pointer nim_cpp_wrapper_util::Json::SecureAllocator< T >::address ( const_reference  x) const
inline

◆ address() [2/2]

template<typename T >
pointer nim_cpp_wrapper_util::Json::SecureAllocator< T >::address ( reference  x) const
inline

◆ allocate()

template<typename T >
pointer nim_cpp_wrapper_util::Json::SecureAllocator< T >::allocate ( size_type  n)
inline

Allocate memory for N items using the standard allocator.

◆ construct()

template<typename T >
template<typename... Args>
void nim_cpp_wrapper_util::Json::SecureAllocator< T >::construct ( pointer  p,
Args &&...  args 
)
inline

Construct an item in-place at pointer P.

◆ deallocate()

template<typename T >
void nim_cpp_wrapper_util::Json::SecureAllocator< T >::deallocate ( volatile pointer  p,
size_type  n 
)
inline

Release memory which was allocated for N items at pointer P.

The memory block is filled with zeroes before being released. The pointer argument is tagged as "volatile" to prevent the compiler optimizing out this critical step.

◆ destroy()

template<typename T >
void nim_cpp_wrapper_util::Json::SecureAllocator< T >::destroy ( pointer  p)
inline

Destroy an item in-place at pointer P.

◆ max_size()

template<typename T >
size_type nim_cpp_wrapper_util::Json::SecureAllocator< T >::max_size ( ) const
inline

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