A class augmenting std::tuple by element access via operator[].
More...
#include <dune/common/tuplevector.hh>
|
template<class... TT, std::enable_if_t< hasTupleConstructor< TT... >::value, int > = 0> |
constexpr | TupleVector (TT &&... tt) |
| Construct from a set of arguments.
|
|
constexpr | TupleVector () |
| Default constructor.
|
|
template<std::size_t i, std::enable_if_t<(i< sizeof...(T)), int > = 0> |
constexpr decltype(auto) | operator[] (const Dune::index_constant< i > &) const |
| Const access to the tuple elements.
|
|
template<std::size_t i, std::enable_if_t<(i< sizeof...(T)), int > = 0> |
decltype(auto) | operator[] (const Dune::index_constant< i > &) |
| Non-const access to the tuple elements.
|
|
|
static constexpr std::size_t | size () |
| Number of elements of the tuple.
|
|
template<class... T>
class Dune::TupleVector< T >
A class augmenting std::tuple by element access via operator[].
◆ TupleVector() [1/2]
template<class... T>
template<class... TT, std::enable_if_t< hasTupleConstructor< TT... >::value, int > = 0>
Construct from a set of arguments.
This is only available if you can construct the underlying std::tuple from the same argument list.
◆ TupleVector() [2/2]
◆ operator[]() [1/2]
template<class... T>
template<std::size_t i, std::enable_if_t<(i< sizeof...(T)), int > = 0>
Non-const access to the tuple elements.
◆ operator[]() [2/2]
template<class... T>
template<std::size_t i, std::enable_if_t<(i< sizeof...(T)), int > = 0>
Const access to the tuple elements.
◆ size()
Number of elements of the tuple.
The documentation for this class was generated from the following file: