4#ifndef DUNE_PDELAB_COMMON_TYPETRAITS_HH
5#define DUNE_PDELAB_COMMON_TYPETRAITS_HH
7#include <dune/common/typetraits.hh>
8#include <dune/typetree/typetraits.hh>
14 using TypeTree::AlwaysVoid;
17 struct GridFunctionTag;
18 struct PowerGridFunctionTag;
19 struct CompositeGridFunctionTag;
25 template<
typename T,
typename =
void>
28 static const bool value =
false;
32 struct IsGridFunction<T, typename AlwaysVoid<TypeTree::ImplementationTag<T>>::type >
34 using A = TypeTree::ImplementationTag<T>;
35 static const bool value = std::is_same<A, GridFunctionTag>::value ||
36 std::is_same<A, PowerGridFunctionTag>::value ||
37 std::is_same<A, CompositeGridFunctionTag>::value;
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
std::integral_constant< bool, impl::IsGridFunction< std::decay_t< T > >::value > IsGridFunction
Definition: typetraits.hh:45
static const unsigned int value
Definition: gridfunctionspace/tags.hh:139