3 #ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH 4 #define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH 8 #include <dune/common/hash.hh> 22 template<
class size_type>
24 public std::array<size_type,1>
33 std::array<size_type,1>(t...)
46 std::array<size_type,1>{{*l.begin()}}
49 operator const size_type& ()
const 51 return this->operator[](0);
54 operator size_type& ()
56 return this->operator[](0);
61 return std::hash<size_type>()(arg);
73 #endif // DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH FlatMultiIndex(std::initializer_list< size_type > const &l)
Construct from initializer_list.
Definition: flatmultiindex.hh:45
Definition: polynomial.hh:7
A multi index class with only one level.
Definition: flatmultiindex.hh:23
constexpr FlatMultiIndex(T &&... t)
Forward constructor arguments to std::array.
Definition: flatmultiindex.hh:32