12#ifndef DUMUX_TYPE_TRAITS_HH
13#define DUMUX_TYPE_TRAITS_HH
29inline constexpr auto noop = [] (
auto...) {};
36template<
typename Default,
typename T>
37using NonVoidOr = std::conditional_t<!std::is_void_v<T>, T, Default>;
constexpr auto noop
Function that performs no operation.
Definition: common/typetraits/typetraits.hh:29
std::conditional_t<!std::is_void_v< T >, T, Default > NonVoidOr
Helper template to select type T if it is not void or fall back to the given default type otherwise.
Definition: common/typetraits/typetraits.hh:37
decltype(noop) Noop
Definition: common/typetraits/typetraits.hh:30
Template which always yields a false value.
Definition: common/typetraits/typetraits.hh:24