7#ifndef DUNE_FUNCTIONS_BACKEND_CONCEPTS_HH
8#define DUNE_FUNCTIONS_BACKEND_CONCEPTS_HH
23template<
class GlobalBasis>
24struct ConstVectorBackend
27 auto require(
const V& v) ->
decltype(
28 v[std::declval<typename GlobalBasis::MultiIndex>()]
33template<
class GlobalBasis>
34struct VectorBackend :
Refines<ConstVectorBackend<GlobalBasis>>
37 auto require(
const V& v) ->
decltype(
38 const_cast<V&
>(v).resize(std::declval<const GlobalBasis&>()),
39 const_cast<V&
>(v)[std::declval<typename GlobalBasis::MultiIndex>()] = v[std::declval<typename GlobalBasis::MultiIndex>()]
Infrastructure for concepts.
Namespace for concepts.
Definition: concept.hh:34
Dune namespace.
Definition: alignedallocator.hh:13
Base class for refined concepts.
Definition: concept.hh:54