Back to Arangodb

Back Extensible Sequence

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

3.12.9.12.8 KB
Original Source

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

Back Extensible Sequence

Description

A Back Extensible Sequence is an Extensible Sequence that supports amortized constant time insertion and removal operations at the end.

Refinement of

Extensible Sequence

Expression requirements

In addition to the requirements defined in Extensible Sequence, for any Back Extensible Sequence s the following must be met:

ExpressionTypeComplexity
push_back<s,x>::typeBack Extensible SequenceAmortized constant time
pop_back<s>::typeBack Extensible SequenceAmortized 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 Extensible Sequence.

ExpressionSemantics
push_back<s,x>::typeEquivalent to insert<s,end<s>::type,x>::type; see push_back.
pop_back<v>::typeEquivalent to erase<s,end<s>::type>::type; see pop_back.
back<s>::typeThe last element in the sequence; see back.

Models

See also

Sequences, Extensible Sequence, Front Extensible Sequence, push_back, pop_back, 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) |