|
SpECTRE
v2026.04.01
|
Check if a type T is callable, i.e. T(Args...) is evaluable. More...
#include <IsCallable.hpp>
Public Types | |
| using | type = std::integral_constant<bool, value> |
| std::true_type if callable, std::false_type otherwise | |
Static Public Attributes | |
| static constexpr bool | value = decltype(test_callable<TT, TArgs...>(0))::value |
| true if callable, false otherwise | |
Check if a type T is callable, i.e. T(Args...) is evaluable.
Inherits from std::true_type if TT has the call operator, operator() defined with arguments TArgs..., otherwise inherits from std::false_type.
For any type TT and types TArgs_i,
Returns: std::bool_constant
Semantics: If the type TT defines operator() with arguments TArgs..., then
otherwise
| TT | the class to check |
| TArgs | the args passed to operator() |