Go to the documentation of this file.
21 #ifndef THUNDEREGG_DIMENSIONALARRAY_H
22 #define THUNDEREGG_DIMENSIONALARRAY_H
38 template<
int N,
template<
int>
class T>
62 static_assert(I < N,
"invalid index value");
63 if constexpr (I == N - 1) {
66 return prev.template get<I>();
76 const T<I>&
get()
const
78 static_assert(I < N,
"invalid index value");
79 if constexpr (I == N - 1) {
82 return prev.template get<I>();
91 template<
template<
int>
class T>
110 static_assert(I == 0,
"invalid index value");
122 static_assert(I == 0,
"invalid index value");
T< I > & get()
Get a value at a given index.
Definition: DimensionalArray.h:60
const T< I > & get() const
Get a value at an index.
Definition: DimensionalArray.h:76
T< I > & get()
Get a value at an index.
Definition: DimensionalArray.h:108
A dimensional array, used for storing templated with and integer. For example a dimensional array of ...
Definition: DimensionalArray.h:39
const T< I > & get() const
Get a value at an index.
Definition: DimensionalArray.h:120
The ThunderEgg namespace.
Definition: BiLinearGhostFiller.h:31