仿函数(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.
采用CLF近似性能指标的值函数,获得了控制仿射无漂系统的镇定控制律表达式。
A formulation of the stabilizing control law is obtained for control-affine driftless systems by means of approximating the value function of the performance index by a CLF.
应用推荐