My Project
Loading...
Searching...
No Matches
Opm::gpuistl::detail::has_should_call_pre< T > Class Template Reference

The has_should_call_pre class detects the presence of the method shouldCallPre. More...

#include <has_function.hpp>

Static Public Attributes

static constexpr bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>
 

Detailed Description

template<typename T>
class Opm::gpuistl::detail::has_should_call_pre< T >

The has_should_call_pre class detects the presence of the method shouldCallPre.

Usage:

if constexpr (has_should_call_pre<decltype(preconditioner)>::value) {
// We know that the function shouldCallPre is present:
auto shouldCallPre = preconditioner.shouldCallPre();
}
The has_should_call_pre class detects the presence of the method shouldCallPre.
Definition has_function.hpp:51
Note
This is mainly done in the GPU preconditioner to avoid having to copy data in the pre step.

The documentation for this class was generated from the following file: