Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何创建列表,谁可以包含带有签名int foo(int x);的函数、带有已定义int operator()(int x);的函子和来自 的函子std::bind1st。
int foo(int x);
int operator()(int x);
std::bind1st
利用std::list<std::function<int(int)>>
std::list<std::function<int(int)>>