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>
40 std::array<size_type,1>{{*l.begin()}}
43 operator const size_type& ()
const 45 return this->operator[](0);
48 operator size_type& ()
50 return this->operator[](0);
55 return std::hash<size_type>()(arg);
67 #endif // DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH FlatMultiIndex(std::initializer_list< size_type > const &l)
Construct from initializer_list.
Definition: flatmultiindex.hh:39
constexpr FlatMultiIndex()=default
Definition: polynomial.hh:7
A multi index class with only one level.
Definition: flatmultiindex.hh:23