Concept RandomAccessContainerConcept
A random access container is a reversible container whose iterator is a random access iterator.

Extends ReversibleContainerConcept
All Extended AssignableConcept, ContainerConcept, DestructibleConcept, ForwardContainerConcept, ReversibleContainerConcept
All Subcl's StringConcept
Defined in <seqan/basic.h>
Signature RandomAccessContainerConcept<T>

Detailed Description

Random access containers support amortized constant time access to its elements.

Member Function Overview

Member Functions Inherited From AssignableConcept

Interface Function Overview

Interface Functions Inherited From AssignableConcept

Interface Functions Inherited From ContainerConcept

Interface Metafunction Overview

Interface Metafunctions Inherited From ContainerConcept

Member Functions Detail

TReference T::operator[](pos);

Returns a reference to an arbitrary element in the sequence.

Parameters

pos Position in the sequence (convertible to position type).

Returns

TReference A reference to into the container with position pos.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

Interface Functions Detail

void assignValue(cont, pos, val);

Assign value in RandomAccessContainer.

Parameters

seq The RandomAccessContainer to modify.
pos The position to modify value at.
val The value to assign to the given position.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

TGetValue getValue(seq, pos);

Deprecated.

Use the subscript operator (operator[]) instead.

Get-value retrieval from container.

Parameters

seq The sequence to get value in.
pos Position in the sequence (convertible to position type).

Returns

TGetValue The get-value (type is GetValue of the sequence type).

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

TReference value(seq, pos);

Deprecated.

Use the subscript operator (operator[]) instead.

Global function variant of subscript operator.

Parameters

seq The sequence to get value in.
pos Position in the sequence (convertible to position type).

Returns

TReference A reference to into the container with position pos.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.