5#ifndef DUNE_COMMON_TYPEUTILITIES_HH
6#define DUNE_COMMON_TYPEUTILITIES_HH
25 template<
class This,
class... T>
26 struct disableCopyMoveHelper :
public std::is_base_of<This, std::tuple_element_t<0, std::tuple<std::decay_t<T>...>>>
30 struct disableCopyMoveHelper<This> :
public std::false_type
44 template<
class This,
class... T>
45 using disableCopyMove = std::enable_if_t< not Impl::disableCopyMoveHelper<This, T...>::value,
int>;
71 template<std::
size_t priority>
74 static constexpr std::size_t
value = priority;
88 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:45
Dune namespace.
Definition alignedallocator.hh:13
Helper class for tagging priorities.
Definition typeutilities.hh:73
static constexpr std::size_t value
Definition typeutilities.hh:74