11#ifndef DUMUX_COMMON_MULTIMAPPERVIEW_HH
12#define DUMUX_COMMON_MULTIMAPPERVIEW_HH
26 template<
class Entity>
27 decltype(
auto)
index(
const Entity& entity)
const
28 {
return mapper_.index(entity); }
30 template<
class Entity>
33 if constexpr (
requires { mapper_.indices(entity); })
34 return mapper_.indices(entity);
36 return std::array<
decltype(mapper_.index(entity)), 1>{ mapper_.index(entity) };
40 const Mapper& mapper_;
Definition multimapperview.hh:20
constexpr MultiMapperView(const Mapper &mapper)
Definition multimapperview.hh:22
decltype(auto) index(const Entity &entity) const
Definition multimapperview.hh:27
auto indices(const Entity &entity) const
Definition multimapperview.hh:31
Definition cvfelocalresidual.hh:25
constexpr auto asMultiMapper(const Mapper &mapper)
Definition multimapperview.hh:48