仿函数(functor),就是使一个类的使用看上去像一个函数。其实现就是类中实现一个operator(),这个类就有了类似函数的行为,就是一个仿函数类了。
好奇的读者会想是什么使仿函数不同于匿名函数或闭包呢?
Curious readers will be wondering what makes a functor different from an anonymous function or closure.
该头文件将大量使用元模板编程和仿函数(functor)。
This header makes heavy use of template meta-programming and functors.
主要是证明了仿齐次函数为亚齐次函数的一个充分条件。
Mainly, it proves that a sufficient condition of a parahomogeneous function is a subhomogeneous function.
应用推荐