C++回调函数(callback)与仿函数(functor)的异同
C++回调函数(callback)与仿函数(functor)的异同许式伟 (版权声明)2007-3-3回调函数(callback)与仿函数(functor)很多时候从用途上来看很相似,以致于我们经常将它们相提并论。例如:inline bool compare(int a, int b){ return a > b;} struct comparer {&n
复制链接