ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::memory::alloc_n::get_size_of_alloc_t结构体 参考

用于自特定类型的内存分配结果获取分配大小 对于null_ptr,返回0 对于单个对象的分配,返回1 更多...

Public 成员函数

template<typename T >
requires able<T>
size_t operator() (const T *arg) const noexcept(nothrow< T >)
 

静态 Public 成员函数

template<typename T >
requires able<T>
static size_t base_call (const T *arg) noexcept(nothrow< T >)
 

静态 Public 属性

template<typename T >
static constexpr bool able =true
 
template<typename T >
static constexpr bool nothrow =noexcept(get_size_of_alloc_method((::std::declval< const T* >())))
 

详细描述

用于自特定类型的内存分配结果获取分配大小 对于null_ptr,返回0 对于单个对象的分配,返回1

在文件 all_defs.cpp20965 行定义.

成员函数说明

◆ base_call()

template<typename T >
requires able<T>
static size_t elc::defs::memory::alloc_n::get_size_of_alloc_t::base_call ( const T *  arg)
inlinestaticnoexcept

在文件 all_defs.cpp20972 行定义.

20972 {
20973 const APIs::alloc::source_location_guard slg{1};
20974 if(arg==null_ptr)
20975 return 0;
20977 }
constexpr T down_cast(U a) noexcept
向下转型至
size_t get_size_of_alloc_method(const T *arg) noexcept

◆ operator()()

template<typename T >
requires able<T>
size_t elc::defs::memory::alloc_n::get_size_of_alloc_t::operator() ( const T *  arg) const
inlinenoexcept

在文件 all_defs.cpp20980 行定义.

20980 {
20981 return base_call(arg);
20982 }
static size_t base_call(const T *arg) noexcept(nothrow< T >)

类成员变量说明

◆ able

template<typename T >
constexpr bool elc::defs::memory::alloc_n::get_size_of_alloc_t::able =true
staticconstexpr

在文件 all_defs.cpp20967 行定义.

◆ nothrow

template<typename T >
constexpr bool elc::defs::memory::alloc_n::get_size_of_alloc_t::nothrow =noexcept(get_size_of_alloc_method((::std::declval< const T* >())))
staticconstexpr

在文件 all_defs.cpp20969 行定义.


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