]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/iterator/doc/filter_iterator_abstract.rst
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / iterator / doc / filter_iterator_abstract.rst
CommitLineData
7c673cae
FG
1.. Copyright David Abrahams 2006. Distributed under the Boost
2.. Software License, Version 1.0. (See accompanying
3.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5The filter iterator adaptor creates a view of an iterator range in
6which some elements of the range are skipped. A predicate function
7object controls which elements are skipped. When the predicate is
8applied to an element, if it returns ``true`` then the element is
9retained and if it returns ``false`` then the element is skipped
10over. When skipping over elements, it is necessary for the filter
11adaptor to know when to stop so as to avoid going past the end of the
12underlying range. A filter iterator is therefore constructed with pair
13of iterators indicating the range of elements in the unfiltered
14sequence to be traversed.
15