ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::memory::get_n::get_t< T >::array_get_t结构体 参考

Public 成员函数

template<class... Args>
requires able<Args...>
T * operator() (Args &&...rest) const noexcept(nothrow< Args... >)
 

Public 属性

size_t _size
 

详细描述

template<typename T>
struct elc::defs::memory::get_n::get_t< T >::array_get_t

Allocates an array of T with the specified size.

在文件 all_defs.cpp21671 行定义.

成员函数说明

◆ operator()()

template<typename T >
template<class... Args>
requires able<Args...>
T * elc::defs::memory::get_n::get_t< T >::array_get_t::operator() ( Args &&...  rest) const
inlinenoexcept

Constructs an array of objects of type T.

参数
restThe arguments to pass to the constructor of T.
返回
An array of objects of type T.

在文件 all_defs.cpp21681 行定义.

21681 {
21682 const APIs::alloc::source_location_guard slg;
21683 if constexpr(type_info<T>.has_attribute(never_in_array))
21684 template_error("You can\'t get an array for never_in_array type.");
21686 }
#define template_error(reason)
Definition all_defs.cpp:559
constexpr T down_cast(U a) noexcept
向下转型至

类成员变量说明

◆ _size

template<typename T >
size_t elc::defs::memory::get_n::get_t< T >::array_get_t::_size

在文件 all_defs.cpp21672 行定义.


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