3 #ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH 4 #define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH 8 #include <dune/common/hash.hh> 30 template<
class size_type>
32 public std::array<size_type,1>
48 std::array<size_type,1>{{*l.begin()}}
56 operator const size_type& ()
const 58 return this->operator[](0);
66 operator size_type& ()
68 return this->operator[](0);
76 inline friend std::size_t hash_value(
const FlatMultiIndex& arg) noexcept
78 return std::hash<size_type>()(arg);
90 #endif // DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH FlatMultiIndex(std::initializer_list< size_type > const &l)
Construct from initializer_list.
Definition: flatmultiindex.hh:47
A multi-index class with only one level.
Definition: flatmultiindex.hh:31
Definition: polynomial.hh:7
constexpr FlatMultiIndex()=default