PageRenderTime 37ms CodeModel.GetById 32ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

ReStructuredText | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | 73ed5cf29c7cfae6fbe6d85191583065 MD5 | raw file
 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
 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.