is_callable¶
Header¶
#include <fit/is_callable.hpp>
Description¶
The is_callable
metafunction checks if the function is callable with
certain parameters.
Synopsis¶
template<class F, class... Ts>
struct is_callable;
Example¶
#include <fit.hpp>
using namespace fit;
struct is_callable_class
{
void operator()(int) const
{
}
};
static_assert(is_callable<is_callable_class, int>(), "Not callable");
int main() {}