Back to Arangodb

Extensible Sequence

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

3.12.9.13.5 KB
Original Source

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

Extensible Sequence

Description

An Extensible Sequence is a sequence that supports insertion and removal of elements. Extensibility is orthogonal to sequence traversal characteristics.

Expression requirements

For any Extensible Sequence s, its iterators pos and last, Forward Sequence r, and any type x, the following expressions must be valid:

ExpressionTypeComplexity
insert<s,pos,x>::typeExtensible SequenceUnspecified
insert_range<s,pos,r>::typeExtensible SequenceUnspecified
erase<s,pos>::typeExtensible SequenceUnspecified
erase<s,pos,last>::typeExtensible SequenceUnspecified
clear<s>::typeExtensible SequenceConstant time

Expression semantics

ExpressionSemantics
insert<s,pos,x>::typeA new sequence, concept-identical to s, of the following elements: [begin<s>::type, pos), x, [pos, end<s>::type); see insert.
insert_range<s,pos,r>::typeA new sequence, concept-identical to s, of the following elements: [begin<s>::type, pos), [begin<r>::type, end<r>::type), [pos, end<s>::type); see insert_range.
erase<s,pos>::typeA new sequence, concept-identical to s, of the following elements: [begin<s>::type, pos), [next<pos>::type, end<s>::type); see erase.
erase<s,pos,last>::typeA new sequence, concept-identical to s, of the following elements: [begin<s>::type, pos), [last, end<s>::type); see erase.
clear<s>::typeAn empty sequence concept-identical to s; see clear.

Models

See also

Sequences, Back Extensible Sequence, insert, insert_range, erase, clear

| 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) |