Why there is no std::copy_if algorithm?

后端 未结 6 1215
无人共我
无人共我 2020-12-03 04:23

Is there any specific reason for not having std::copy_if algorithm in C++ ? I know I can use std::remove_copy_if to achieve the required behavior. I think it is coming in C+

6条回答
  •  旧时难觅i
    2020-12-03 04:43

    According to Stroustrup's "The C++ Programming Language" it was just an over-sight.

    (as a citation, the same question answered in boost mail-lists: copy_if)

提交回复
热议问题