filter_iterator_abstract.rst

来自「Boost provides free peer-reviewed portab」· RST 代码 · 共 16 行

RST
16
字号
.. Copyright David Abrahams 2006. Distributed under the Boost.. Software License, Version 1.0. (See accompanying.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)The filter iterator adaptor creates a view of an iterator range inwhich some elements of the range are skipped. A predicate functionobject controls which elements are skipped. When the predicate isapplied to an element, if it returns ``true`` then the element isretained and if it returns ``false`` then the element is skippedover. When skipping over elements, it is necessary for the filteradaptor to know when to stop so as to avoid going past the end of theunderlying range. A filter iterator is therefore constructed with pairof iterators indicating the range of elements in the unfilteredsequence to be traversed.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?