3 #ifndef DUNE_COMMON_TYPEUTILITIES_HH
4 #define DUNE_COMMON_TYPEUTILITIES_HH
23 template<
class This,
class... T>
24 struct disableCopyMoveHelper :
public std::is_base_of<This, std::tuple_element_t<0, std::tuple<std::decay_t<T>...>>>
28 struct disableCopyMoveHelper<This> :
public std::false_type
42 template<
class This,
class... T>
43 using disableCopyMove = std::enable_if_t< not Impl::disableCopyMoveHelper<This, T...>::value,
int>;
69 template<std::
size_t priority>
72 static constexpr std::size_t
value = priority;
86 static constexpr std::size_t
value = 0;
std::enable_if_t< not Impl::disableCopyMoveHelper< This, T... >::value, int > disableCopyMove
Helper to disable constructor as copy and move constructor.
Definition: typeutilities.hh:43
Dune namespace.
Definition: alignedallocator.hh:14
Helper class for tagging priorities.
Definition: typeutilities.hh:71
static constexpr std::size_t value
Definition: typeutilities.hh:72