]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/range/doc/reference/algorithm/remove_copy_if.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / range / doc / reference / algorithm / remove_copy_if.qbk
CommitLineData
7c673cae
FG
1[/
2 Copyright 2010 Neil Groves
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5/]
6[section:remove_copy_if remove_copy_if]
7
8[heading Prototype]
9
10``
11template<class ForwardRange, class Outputiterator, class UnaryPred>
12OutputIterator
13remove_copy_if(ForwardRange& rng, OutputIterator out, UnaryPred pred);
14
15template<class ForwardRange, class OutputIterator, class UnaryPred>
16OutputIterator
17remove_copy_if(const ForwardRange& rng, OutputIterator out, UnaryPred pred);
18``
19
20[heading Description]
21
22`remove_copy_if` copied all of the elements `x` from `rng` for which `pred(x)` is `false`.
23
24[heading Definition]
25
26Defined in the header file `boost/range/algorithm/remove_copy_if.hpp`
27
28[heading Requirements]
29
30* `ForwardRange` is a model of the __forward_range__ Concept.
31* `ForwardRange` is mutable.
32* `UnaryPred` is a model of the `UnaryPredicateConcept`.
33
34[heading Complexity]
35
36Linear. `remove_copy_if` performs exactly `distance(rng)` comparisons with UnaryPred.
37
38[endsect]