12#ifndef DUMUX_TYPETRAITS_STATE_HH
13#define DUMUX_TYPETRAITS_STATE_HH
15#include <dune/common/std/type_traits.hh>
22 template<
class PrimaryVariables>
24 ->
decltype(priVars.state())
33{
return Dune::Std::is_detected<DetectPriVarsHaveState, P>::value; }
Distance implementation details.
Definition: cvfelocalresidual.hh:25
constexpr bool priVarsHaveState()
Definition: state.hh:32
decltype(std::declval< P >().state()) DetectPriVarsHaveState
Definition: state.hh:29
helper struct detecting if a PrimaryVariables object has a state() function
Definition: state.hh:21
auto operator()(PrimaryVariables &&priVars) -> decltype(priVars.state())
Definition: state.hh:23