I\'m used to seeing syntax like this for 开发者_StackOverflow中文版function pointers int (*pointer_name) (float, char *);
I know what functors are and when to use them with std algorithms, but I haven\'t understood what Stroustrup says about them in the C++11 FAQ.开发者_Go百科
The following code is legal C++: int m() { return 42; } int main() { std::function<void()> func, func2;
This query is mainly based on std::function<R(Args...) >::operator= and std::any::operator=. The documentation shows that they are always implemented by constructing a new temporary object and s