3#ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH
4#define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_FLATMULTIINDEX_HH
8#include <dune/common/hash.hh>
30template<
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);
78 return std::hash<size_type>()(arg);
81 static constexpr std::size_t
max_size() {
return 1; }
friend std::size_t hash_value(const FlatMultiIndex &arg) noexcept
Compute hash value for FlatMultiIndex.
Definition: flatmultiindex.hh:76
Definition: polynomial.hh:10
A multi-index class with only one level.
Definition: flatmultiindex.hh:33
constexpr FlatMultiIndex()=default
FlatMultiIndex(std::initializer_list< size_type > const &l)
Construct from initializer_list.
Definition: flatmultiindex.hh:47
static constexpr std::size_t max_size()
Definition: flatmultiindex.hh:81