bidirectionalsequence.rst

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

RST
64
字号
.. Sequences/Concepts//Bidirectional Sequence |20.. Copyright Aleksey Gurtovoy, David Abrahams 2007... 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)Bidirectional Sequence======================Description-----------A |Bidirectional Sequence| is a |Forward Sequence| whose iterators model|Bidirectional Iterator|. Refinement of-------------|Forward Sequence|Expression requirements-----------------------In addition to the requirements defined in |Forward Sequence|, for any |Bidirectional Sequence| ``s`` the following must be met:+---------------------------+-----------------------------------+---------------------------+| Expression                | Type                              | Complexity                |+===========================+===================================+===========================+| ``begin<s>::type``        | |Bidirectional Iterator|          | Amortized constant time   |+---------------------------+-----------------------------------+---------------------------+| ``end<s>::type``          | |Bidirectional Iterator|          | Amortized constant time   |+---------------------------+-----------------------------------+---------------------------+| ``back<s>::type``         | Any type                          | Amortized constant time   |+---------------------------+-----------------------------------+---------------------------+Expression semantics--------------------|Semantics disclaimer...| |Forward Sequence|.+---------------------------+-----------------------------------------------------------------------+| Expression                | Semantics                                                             |+===========================+=======================================================================+| ``back<s>::type``         | The last element in the sequence; see |back|.                         |+---------------------------+-----------------------------------------------------------------------+Models------* |vector|* |range_c|See also--------|Sequences|, |Forward Sequence|, |Random Access Sequence|, |Bidirectional Iterator|, |begin| / |end|, |back|

⌨️ 快捷键说明

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