Why do several of the standard operators not have standard functors?

后端 未结 6 1085
庸人自扰
庸人自扰 2021-02-05 05:15

We have:

  • std::plus (+)
  • std::minus (-)
  • std::multiplies (*)
6条回答
  •  长情又很酷
    2021-02-05 05:57

    The reason probably is that most of developers doesn't need them. Others use Boost.Lambda, most of them are there.

提交回复
热议问题