<tfoot id='wqFsu'></tfoot>
      <bdo id='wqFsu'></bdo><ul id='wqFsu'></ul>

    <small id='wqFsu'></small><noframes id='wqFsu'>

      <i id='wqFsu'><tr id='wqFsu'><dt id='wqFsu'><q id='wqFsu'><span id='wqFsu'><b id='wqFsu'><form id='wqFsu'><ins id='wqFsu'></ins><ul id='wqFsu'></ul><sub id='wqFsu'></sub></form><legend id='wqFsu'></legend><bdo id='wqFsu'><pre id='wqFsu'><center id='wqFsu'></center></pre></bdo></b><th id='wqFsu'></th></span></q></dt></tr></i><div id='wqFsu'><tfoot id='wqFsu'></tfoot><dl id='wqFsu'><fieldset id='wqFsu'></fieldset></dl></div>

      1. <legend id='wqFsu'><style id='wqFsu'><dir id='wqFsu'><q id='wqFsu'></q></dir></style></legend>
      2. 为什么没有 std::copy_if 算法?

        Why there is no std::copy_if algorithm?(为什么没有 std::copy_if 算法?)
      3. <small id='vvpuX'></small><noframes id='vvpuX'>

      4. <i id='vvpuX'><tr id='vvpuX'><dt id='vvpuX'><q id='vvpuX'><span id='vvpuX'><b id='vvpuX'><form id='vvpuX'><ins id='vvpuX'></ins><ul id='vvpuX'></ul><sub id='vvpuX'></sub></form><legend id='vvpuX'></legend><bdo id='vvpuX'><pre id='vvpuX'><center id='vvpuX'></center></pre></bdo></b><th id='vvpuX'></th></span></q></dt></tr></i><div id='vvpuX'><tfoot id='vvpuX'></tfoot><dl id='vvpuX'><fieldset id='vvpuX'></fieldset></dl></div>
            <tbody id='vvpuX'></tbody>

          • <bdo id='vvpuX'></bdo><ul id='vvpuX'></ul>

                <legend id='vvpuX'><style id='vvpuX'><dir id='vvpuX'><q id='vvpuX'></q></dir></style></legend>

                <tfoot id='vvpuX'></tfoot>
                1. 本文介绍了为什么没有 std::copy_if 算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 C++ 中没有 std::copy_if 算法有什么具体原因吗?我知道我可以使用 std::remove_copy_if 来实现所需的行为.我认为它是在 C++0x 中出现的,但是一个简单的 copy_if 需要一个范围、一个输出迭代器和一个函子会很好.它只是简单地错过了还是背后有其他原因?

                  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++0x, but a simple copy_if which takes a range, a output iterator and a functor would have been nice. Was it just simply missed out or is there some other reason behind it?

                  推荐答案

                  根据 Stroustrup 的C++ 编程语言",这只是一个疏忽.

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

                  (作为引文,在 boost 邮件列表中回答了同样的问题:copy_if)

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

                  这篇关于为什么没有 std::copy_if 算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What is the past-the-end iterator in STL C++?(STL C++ 中的最后迭代器是什么?)
                  vector::at vs. vector::operator[](vector::at 与 vector::operator[])
                  C++ equivalent of StringBuffer/StringBuilder?(C++ 等效于 StringBuffer/StringBuilder?)
                  Adding types to the std namespace(将类型添加到 std 命名空间)
                  Is the C++ std::set thread-safe?(C++ std::set 线程安全吗?)
                  How to use std::find/std::find_if with a vector of custom class objects?(如何将 std::find/std::find_if 与自定义类对象的向量一起使用?)

                    <tbody id='RbJbS'></tbody>
                    <bdo id='RbJbS'></bdo><ul id='RbJbS'></ul>
                    • <small id='RbJbS'></small><noframes id='RbJbS'>

                      <i id='RbJbS'><tr id='RbJbS'><dt id='RbJbS'><q id='RbJbS'><span id='RbJbS'><b id='RbJbS'><form id='RbJbS'><ins id='RbJbS'></ins><ul id='RbJbS'></ul><sub id='RbJbS'></sub></form><legend id='RbJbS'></legend><bdo id='RbJbS'><pre id='RbJbS'><center id='RbJbS'></center></pre></bdo></b><th id='RbJbS'></th></span></q></dt></tr></i><div id='RbJbS'><tfoot id='RbJbS'></tfoot><dl id='RbJbS'><fieldset id='RbJbS'></fieldset></dl></div>

                      1. <tfoot id='RbJbS'></tfoot>
                            <legend id='RbJbS'><style id='RbJbS'><dir id='RbJbS'><q id='RbJbS'></q></dir></style></legend>