Comparison Functor Types vs. operator<

前端 未结 7 2086
庸人自扰
庸人自扰 2021-01-02 04:54

In the Google C++ Style Guide, the section on Operator Overloading recommends against overloading any operators (\"except in rare, special circumstances\"). Specifi

7条回答
  •  梦毁少年i
    2021-01-02 05:35

    Ironically, a functor also requires overriding an operator (the function call operator - operator ()), so I'm not sure what their point is.

提交回复
热议问题