is_callable

Description

The is_callable metafunction checks if the function is callable with certain parameters.

Requirements

F must be:

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() {}