Back to Arangodb

Extensible Associative Sequence

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

3.12.9.13.9 KB
Original Source

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

Extensible Associative Sequence

Description

An Extensible Associative Sequence is an Associative Sequence that supports insertion and removal of elements. In contrast to Extensible Sequence, Extensible Associative Sequence does not provide a mechanism for inserting an element at a specific position.

Expression requirements

In the following table and subsequent specifications, s is an Associative Sequence, pos is an iterator into s, and x and k are arbitrary types.

In addition to the Associative Sequence requirements, the following must be met:

ExpressionTypeComplexity
insert<s,x>::typeExtensible Associative SequenceAmortized constant time
insert<s,pos,x>::typeExtensible Associative SequenceAmortized constant time
erase_key<s,k>::typeExtensible Associative SequenceAmortized constant time
erase<s,pos>::typeExtensible Associative SequenceAmortized constant time
clear<s>::typeExtensible Associative SequenceAmortized constant time

Expression semantics

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

ExpressionSemantics
insert<s,x>::type

Inserts x into s; the resulting sequence r is equivalent to s except that

[at](./at.html)< r,[key\_type](./key-type.html)<s,x>::type >::type

is identical to value_type<s,x>::type; see insert.

| | insert<s,pos,x>::type | Equivalent to insert<s,x>::type; pos is ignored; see insert. | | erase_key<s,k>::type | Erases elements in s associated with the key k; the resulting sequence r is equivalent to s except that has_key<r,k>::value == false; see erase_key. | | erase<s,pos>::type | Erases the element at a specific position; equivalent to erase_key<s, deref<pos>::type >::type; see erase. | | clear<s>::type | An empty sequence concept-identical to s; see clear. |

Models

See also

Sequences, Associative Sequence, insert, 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) |