19 #ifndef OPM_CUISTL_DETAIL_HAS_FUNCTION_HPP 20 #define OPM_CUISTL_DETAIL_HAS_FUNCTION_HPP 21 #include <type_traits> 53 static std::true_type test(decltype(&U::shouldCallPre));
55 static std::false_type test(...);
58 static constexpr
bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
79 static std::true_type test(decltype(&U::shouldCallPost));
81 static std::false_type test(...);
84 static constexpr
bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
98 static std::true_type test(decltype(&U::getCommunication));
100 static std::false_type test(...);
103 static constexpr
bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
112 template <
typename T>
115 template <
typename U>
116 static std::true_type test(decltype(&U::addWellPressureEquations));
117 template <
typename U>
118 static std::false_type test(...);
121 static constexpr
bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
The has_should_call_post class detects the presence of the method shouldCallPost. ...
Definition: has_function.hpp:76
The is_a_well_operator class tries to guess if the operator is a well type operator.
Definition: has_function.hpp:113
The has_should_call_pre class detects the presence of the method shouldCallPre.
Definition: has_function.hpp:50
The has_communication class checks if the type has the member function getCommunication.
Definition: has_function.hpp:95
Contains wrappers to make the CuBLAS library behave as a modern C++ library with function overlading...
Definition: autotuner.hpp:29