◆ base_call()
static void elc::defs::memory::get_n::get_resize_t::base_call |
( |
T *& |
arg, |
|
|
const size_t |
to_size |
|
) |
| |
|
inlinestaticnoexcept |
在文件 all_defs.cpp 第 21810 行定义.
21810 {
21811 if constexpr(
type_info<T>.has_attribute(never_in_array)){
21812 template_warning(
"For never_in_array type,get_resize will unget ptr when new_size=0 else do nothing.");
21814 return;
21819 }else{
21822 return;
21829 }else
21831 }
21832 }
#define template_warning(reason)
constexpr struct elc::defs::base::null_ptr_n::null_ptr_t null_ptr
constexpr T down_cast(U a) noexcept
向下转型至
constexpr struct elc::defs::memory::alloc_n::get_size_of_alloc_t get_size_of_alloc
constexpr struct elc::defs::memory::get_n::unget_t unget
void alloc_size_cut(T *&arg, size_t to_size) noexcept
void alloc_size_grow(T *&arg, size_t to_size) noexcept(move.trivial< T > or move.nothrow< T >)
constexpr struct elc::defs::memory::lifetime_n::destruct_t destruct
◆ operator()() [1/2]
T * elc::defs::memory::get_n::get_resize_t::operator() |
( |
T *&& |
arg, |
|
|
size_t |
to_size |
|
) |
| const |
|
inlinenoexcept |
在文件 all_defs.cpp 第 21840 行定义.
21840 {
21841 const APIs::alloc::source_location_guard
slg;
21844 }
static void base_call(T *&arg, const size_t to_size) noexcept(nothrow< T >)
◆ operator()() [2/2]
void elc::defs::memory::get_n::get_resize_t::operator() |
( |
T *& |
arg, |
|
|
size_t |
to_size |
|
) |
| const |
|
inlinenoexcept |
◆ able
constexpr bool elc::defs::memory::get_n::get_resize_t::able =construct<T>.able<>&&destruct.able<T>&&move.able<T> |
|
staticconstexpr |
◆ insert
◆ insert_with_resize
◆ nothrow
该结构体的文档由以下文件生成: