Does a no-op “do nothing” function object exist in C++(0x)?

后端 未结 4 1555
春和景丽
春和景丽 2021-01-03 20:16

I realize this is a ludicrous question for something that takes less than 2 seconds to implement. But I vaguely remember reading that one was introduced with the new standar

4条回答
  •  没有蜡笔的小新
    2021-01-03 20:35

    You was probably thinking about the identity function (std::identity and apparently it's removed in the current draft) that is not the same thing though.

提交回复
热议问题