dune-common 2.9.0
|
Check if a type is callable with ()-operator and given arguments. More...
Check if a type is callable with ()-operator and given arguments.
D | Function descriptor |
R | Return value type |
If D = F(Args...)
this checks if F can be called with an argument list of type Args...
, and if the return value can be converted to R. If R is void
, any return type is accepted.
The result is encoded by deriving from either std::true_type
or std::false_type
If D is not of the form F(Args...)
this class is not defined.
std::invocable_r
in the way that only FunctionObject
types are allowed here while std::invocable_r
also accepts pointers to member functions and pointers to data members (i.e. more general Callable
types) FunctionObject
and https://en.cppreference.com/w/cpp/named_req/Callable for Callable
.