Comparison Functor Types vs. operator<

前端 未结 7 2039
庸人自扰
庸人自扰 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条回答
  • 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.

    0 讨论(0)
提交回复
热议问题