SyTen

◆ init()

template<typename Type >
void syten::DynArray< Type >::init ( Init  do_init = Init::Yes)
inlineprivate

Acquire memory based on the current value of length.

Parameters
do_initif do_init is Init::No and Type is trivially constructible, call initTrivial(), otherwise, call initNew();

References syten::DynArray< Type >::array, syten::EnvVars::dynarray_allocs, syten::DynArray< Type >::initNew(), syten::DynArray< Type >::initTrivial(), syten::DynArray< Type >::length, syten::logGW(), and syten::No.

Referenced by syten::DynArray< Type >::DynArray(), syten::DynArray< Type >::load(), and syten::DynArray< Type >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: