Как я могу сделать вывод статически, если аргумент является объектом функции С++ (функтор)?
template <typename F>
void test(F f) {}
Я пробовал is_function<F>::value
, но это не работает. Также кажется, что нет черты is_functor
, поэтому, возможно, это невозможно. Кажется, я ищу только определенную функцию-член, в этом случае оператор вызова функции: F::operator()
.