3 #ifndef DUNE_FUNCTIONS_COMMON_TYPE_TRAITS_HH
4 #define DUNE_FUNCTIONS_COMMON_TYPE_TRAITS_HH
24 template<
class T,
class... Args>
26 std::is_constructible<T, Args...>::value,
int>::type;
35 -> decltype(std::integral_constant<std::size_t,T::size()>())
43 -> decltype(std::integral_constant<std::size_t,T().size()>())
51 -> decltype(std::integral_constant<std::size_t,std::tuple_size<T>::value>())
57 constexpr std::false_type hasStaticSize(
const T* t,
const PriorityTag<0>& p)
82 public decltype(Imp::hasStaticSize((typename std::decay<T>::type*)(nullptr), PriorityTag<42>()))
96 public decltype(Imp::staticSize((typename std::decay<T>::type*)(nullptr), PriorityTag<42>()))
typename std::enable_if< std::is_constructible< T, Args... >::value, int >::type enableIfConstructible
Helper to constrain forwarding constructors.
Definition: type_traits.hh:26
Dune namespace.
Definition: alignedallocator.hh:13
Check if type is a statically sized container.
Definition: type_traits.hh:83
Obtain size of statically sized container.
Definition: type_traits.hh:97
Helper class for tagging priorities.
Definition: typeutilities.hh:87
Helper class for tagging priorities.
Definition: typeutilities.hh:73
Utilities for type computations, constraining overloads, ...