49 template<
typename T_V,
typename =
void>
65 template<
typename T_T,
size_t T_n>
70 static size_t constexpr n = T_n;
73 static std::array<T, n>
construct(
size_t const size) {
77 return std::array<T, n>();
#define codiAssert(x)
See codi::Config::EnableAssert.
Definition config.h:432
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
#define CODI_ANY
Used in default declarations of expression templates.
Definition macros.hpp:98
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:111
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
void CODI_UNUSED(Args const &...)
Disable unused warnings for an arbitrary number of arguments.
Definition macros.hpp:46
V constructVector(size_t const size)
Helper for the construction of vector types provided by the user.
Definition constructVector.hpp:83
static std::array< T, n > construct(size_t const size)
Only asserts the argument for the correct size.
Definition constructVector.hpp:73
T_T T
See ConstructVectorImpl.
Definition constructVector.hpp:69
Definition constructVector.hpp:50
static V construct(size_t const size)
Default implementation assumes that there is a constructor that takes the vector size as its single a...
Definition constructVector.hpp:56
T_V V
See ConstructVectorImpl.
Definition constructVector.hpp:53