NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nstd::memory结构体 参考

#include <ne_stl_memory.h>

静态 Public 成员函数

template<class TElement >
static TElement * safe_malloc_container_element (std::size_t count)
 
template<class TElement >
static void safe_delete_container_element (TElement *&element_ptr)
 
template<class TObject , class... TArgs>
static TObject * safe_new (TArgs... args)
 
template<class TObject >
static void safe_delete (TObject *&object_ptr)
 
template<typename TObject , typename... TArgs>
static TObject * new_obj (TArgs... args)
 
template<typename TObject >
static bool delete_obj (TObject *&object)
 

成员函数说明

◆ delete_obj()

template<typename TObject >
static bool nstd::memory::delete_obj ( TObject *&  object)
inlinestatic

◆ new_obj()

template<typename TObject , typename... TArgs>
static TObject * nstd::memory::new_obj ( TArgs...  args)
inlinestatic

◆ safe_delete()

template<class TObject >
static void nstd::memory::safe_delete ( TObject *&  object_ptr)
inlinestatic

◆ safe_delete_container_element()

template<class TElement >
static void nstd::memory::safe_delete_container_element ( TElement *&  element_ptr)
inlinestatic

◆ safe_malloc_container_element()

template<class TElement >
static TElement * nstd::memory::safe_malloc_container_element ( std::size_t  count)
inlinestatic

◆ safe_new()

template<class TObject , class... TArgs>
static TObject * nstd::memory::safe_new ( TArgs...  args)
inlinestatic

该结构体的文档由以下文件生成: