◆ base_call() [1/2]
static T * elc::defs::memory::lifetime_n::move_construct_t::base_call |
( |
T * |
to, |
|
|
T * |
from |
|
) |
| |
|
inlinestaticnoexcept |
在文件 all_defs.cpp 第 9898 行定义.
9898 {
9900 return reinterpret_cast<T*
>(::std::memcpy(to,
add_const(from),
sizeof(T)));
9901 else{
9905 }else
9907 }
9908 }
constexpr to_t< T > to(T v)
constexpr T down_cast(U a) noexcept
向下转型至
constexpr const T add_const(T a) noexcept
对值追加const
constexpr struct elc::defs::memory::lifetime_n::copy_construct_t copy_construct
◆ base_call() [2/2]
static T * elc::defs::memory::lifetime_n::move_construct_t::base_call |
( |
T * |
to, |
|
|
T * |
from, |
|
|
size_t |
size |
|
) |
| |
|
inlinestaticnoexcept |
在文件 all_defs.cpp 第 9910 行定义.
9910 {
9911 if constexpr(
type_info<T>.has_attribute(never_in_array))
9912 template_error(
"You cannot perform array operations on never_in_array type.");
9914 return reinterpret_cast<T*
>(::std::memcpy(to,
add_const(from),
sizeof(T)*size));
9915 else{
9917 while(size--)
9920 }else
9922 }
9923 }
#define template_error(reason)
constexpr size_t size(::size_t v)
constexpr from_t< T > from(T v)
◆ operator()() [1/3]
T * elc::defs::memory::lifetime_n::move_construct_t::operator() |
( |
note::from_t< T * > |
from, |
|
|
note::to_t< T * > |
to |
|
) |
| const |
|
inlinenoexcept |
在文件 all_defs.cpp 第 9934 行定义.
static T * base_call(T *to, T *from) noexcept(nothrow< T >)
◆ operator()() [2/3]
T * elc::defs::memory::lifetime_n::move_construct_t::operator() |
( |
note::to_t< T * > |
to, |
|
|
note::from_t< T * > |
from |
|
) |
| const |
|
inlinenoexcept |
◆ operator()() [3/3]
T * elc::defs::memory::lifetime_n::move_construct_t::operator() |
( |
T * |
to, |
|
|
T * |
from |
|
) |
| const |
|
inlinenoexcept |
◆ operator[]()
◆ able
constexpr bool elc::defs::memory::lifetime_n::move_construct_t::able =r_able<T>?true:copy_construct.able<T> |
|
staticconstexpr |
◆ nothrow
constexpr bool elc::defs::memory::lifetime_n::move_construct_t::nothrow |
|
staticconstexpr |
◆ r_able
constexpr bool elc::defs::memory::lifetime_n::move_construct_t::r_able |
|
staticconstexpr |
◆ trivial
constexpr bool elc::defs::memory::lifetime_n::move_construct_t::trivial |
|
staticconstexpr |
该结构体的文档由以下文件生成: