3 #ifndef DUNE_COMMON_TUPLEVECTOR_HH 4 #define DUNE_COMMON_TUPLEVECTOR_HH 32 using Base = std::tuple<T...>;
40 Base(
std::forward<TT>(tt)...)
50 template<std::
size_t i>
53 return std::get<i>(*this);
58 template<std::
size_t i>
61 return std::get<i>(*this);
65 static constexpr std::size_t
size()
67 return std::tuple_size<Base>::value;
85 #endif // DUNE_COMMON_TUPLEVECTOR_HH A class augmenting std::tuple by element access via operator[].
Definition: tuplevector.hh:30
static constexpr std::size_t size()
Number of elements of the tuple.
Definition: tuplevector.hh:65
constexpr TupleVector()
Default constructor.
Definition: tuplevector.hh:45
constexpr TupleVector(TT &&... tt)
Construct from a set of arguments.
Definition: tuplevector.hh:39
Dune namespace.
Definition: alignment.hh:10
constexpr auto makeTupleVector(T &&... t)
Definition: tuplevector.hh:74
std::integral_constant< std::size_t, i > index_constant
An index constant with value i.
Definition: indices.hh:26