dune-common
2.7.1
|
Traits class to check if function is callable. More...
Traits class to check if function is callable.
D | Function descriptor |
R | Return value |
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 std::integral_constant<bool, result>.
If D is not of the form D = F(Args...) this class is not defined.
This implements std::is_callable as proposed in N4446 for C++17.