readableiterator.rst
来自「Boost provides free peer-reviewed portab」· RST 代码 · 共 27 行
RST
27 行
.. 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)Readable Iterator Concept.........................A class or built-in type ``X`` models the *Readable Iterator* conceptfor value type ``T`` if, in addition to ``X`` being Assignable andCopy Constructible, the following expressions are valid and respectthe stated semantics. ``U`` is the type of any specified member oftype ``T``.+-----------------------------------------------------------------------------------------------------------------------------+|Readable Iterator Requirements (in addition to Assignable and Copy Constructible) |+-----------------------------------+------------------------+----------------------------------------------------------------+|Expression |Return Type |Note/Precondition |+===================================+========================+================================================================+|``iterator_traits<X>::value_type`` |``T`` |Any non-reference, || | |non-cv-qualified type |+-----------------------------------+------------------------+----------------------------------------------------------------+|``*a`` | Convertible to ``T`` |pre: ``a`` is dereferenceable. If ``a == b`` then ``*a`` || | | is equivalent to ``*b``. |+-----------------------------------+------------------------+----------------------------------------------------------------+|``a->m`` |``U&`` |pre: ``pre: (*a).m`` is well-defined. Equivalent to ``(*a).m``. |+-----------------------------------+------------------------+----------------------------------------------------------------+
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?