24#ifndef DUMUX_TYPETRAITS_STATE_HH
25#define DUMUX_TYPETRAITS_STATE_HH
27#include <dune/common/std/type_traits.hh>
34 template<
class PrimaryVariables>
36 ->
decltype(priVars.state())
45{
return Dune::Std::is_detected<DetectPriVarsHaveState, P>::value; }
Distance implementation details.
Definition: cvfelocalresidual.hh:37
constexpr bool priVarsHaveState()
Definition: state.hh:44
decltype(std::declval< P >().state()) DetectPriVarsHaveState
Definition: state.hh:41
helper struct detecting if a PrimaryVariables object has a state() function
Definition: state.hh:33
auto operator()(PrimaryVariables &&priVars) -> decltype(priVars.state())
Definition: state.hh:35