Skip to content
Snippets Groups Projects
Commit 2d05f8e8 authored by graeser's avatar graeser
Browse files

[concept] Add concept for a VectorBackend

parent 860bcc80
No related branches found
No related tags found
No related merge requests found
......@@ -250,6 +250,19 @@ struct GlobalBasis
);
};
// Concept for a VectorBackend
template<class GlobalBasis>
struct VectorBackend
{
template<class V>
auto require(const V& v) -> decltype(
const_cast<V&>(v).resize(std::declval<const GlobalBasis&>()),
v[std::declval<typename GlobalBasis::MultiIndex>()]
);
};
} // namespace Dune::Functions::Concept
} // namespace Dune::Functions
} // namespace Dune
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment