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

Public 成员函数

T * operator() (array_like_view_t< const T >a) const noexcept(nothrow< void >)
 

静态 Public 属性

template<typename U >
static constexpr bool able =copy_construct.able<T>&&destruct.able<T>&&is_array_like_for<T,U>
 
template<typename U >
static constexpr bool nothrow =copy_construct.nothrow<T>
 

详细描述

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

在文件 all_defs.cpp21690 行定义.

成员函数说明

◆ operator()()

template<typename T >
T * elc::defs::memory::get_n::get_t< T >::as_array_t::operator() ( array_like_view_t< const T >  a) const
inlinenoexcept

在文件 all_defs.cpp21696 行定义.

21696 {
21697 const APIs::alloc::source_location_guard slg;
21698 if constexpr(type_info<T>.has_attribute(never_in_array))
21699 template_error("You can\'t get an array for never_in_array type.");
21700 const auto size=a.size();
21701 auto aret=alloc<T>[size]();
21703 return aret;
21704 }
#define template_error(reason)
Definition all_defs.cpp:559
constexpr size_t size(::size_t v)
constexpr to_t< T > to(T v)
constexpr from_t< T > from(T v)
constexpr T down_cast(U a) noexcept
向下转型至
constexpr struct elc::defs::memory::lifetime_n::copy_construct_t copy_construct

类成员变量说明

◆ able

template<typename T >
template<typename U >
constexpr bool elc::defs::memory::get_n::get_t< T >::as_array_t::able =copy_construct.able<T>&&destruct.able<T>&&is_array_like_for<T,U>
staticconstexpr

在文件 all_defs.cpp21692 行定义.

◆ nothrow

template<typename T >
template<typename U >
constexpr bool elc::defs::memory::get_n::get_t< T >::as_array_t::nothrow =copy_construct.nothrow<T>
staticconstexpr

在文件 all_defs.cpp21694 行定义.


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