Back to Arangodb

Bidirectional Sequence

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/bidirectional-sequence.html

3.12.9.12.4 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Concepts / Bidirectional Sequence |

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:

ExpressionTypeComplexity
begin<s>::typeBidirectional IteratorAmortized constant time
end<s>::typeBidirectional IteratorAmortized constant time
back<s>::typeAny typeAmortized constant time

Expression semantics

The semantics of an expression are defined only where they differ from, or are not defined in Forward Sequence.

ExpressionSemantics
back<s>::typeThe last element in the sequence; see back.

Models

See also

Sequences, Forward Sequence, Random Access Sequence, Bidirectional Iterator, begin / end, back

| Prev Next | Back Along | Up Home | Full TOC |

Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams 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) |