DUNE-ACFEM (unstable)
fieldpromotion.hh
Go to the documentation of this file.
48 using Type = copy_cv_reference_t<F, typename FloatingPointClosureHelper<std::decay_t<F> >::Type>;
79 template<class T, std::enable_if_t<!std::is_same<FloatingPointClosure<std::decay_t<T> >, std::decay_t<T> >::value, int> = 0>
86 template<class T, std::enable_if_t<std::is_same<FloatingPointClosure<std::decay_t<T> >, std::decay_t<T> >::value, int> = 0>
98 using Type = std::decay_t<decltype(std::declval<typename FieldTraits<std::decay_t<T1> >::field_type>()
Various traits for expressions.
typename FloatingPointClosureHelper< T >::Type FloatingPointClosure
Template alias.
Definition: fieldpromotion.hh:74
constexpr auto floatingPointClosure(T &&t)
Convert in particular integer types to a decent floating point type.
Definition: fieldpromotion.hh:80
STL namespace.
Promote potentially different numeric field types to a "closure" type.
Definition: fieldpromotion.hh:97
Helper class for specializing Dune::FieldTraits.
Definition: typetraits.hh:96
