Random‐access const iterator over a CompactedArray.
Synopsis
Declared in <bdlc_compactedarray.h>
template<class TYPE>
class CompactedArray_ConstIterator;
Description
This value‐semantic class represents a random access iterator providing non‐modifiable access to the elements of a CompactedArray. This class provides all functionality of a random access iterator, as defined by the standard, but is not compatible with most standard methods requiring a bidirectional const_iterator.
This class does not perform any bounds checking. Any iterator, it, referencing a CompactedArray array, remains valid while 0 <= it ‐ array.begin() < array.length().
Type Aliases
Name |
Description |
Signed type used for distances between iterators. |
|
Tag identifying this type as a random‐access iterator. |
|
Pointer into the array (unused; always |
|
Reference to an element (unused; always |
|
Unsigned type used for lengths and indices. |
|
Element type of the referenced array. |
Member Functions
Name |
Description |
|
Constructors |
Assign to this iterator the value of the specified |
|
Return a const reference to the element referenced by this iterator. |
|
Advance this iterator and return a reference to it. |
|
Advance this iterator by the specified |
|
Decrement this iterator and return a reference to it. |
|
Decrement this iterator by the specified |
|
Return a const reference to the element referenced by this iterator. |
|
Return a const reference to the element at the specified |
Friends
Name |
Description |
Return whether the left iterator follows or equals the right (see free |
|
Return whether the left iterator follows the right (see free |
|
Return whether the left iterator precedes or equals the right (see free |
|
Return whether the left iterator precedes the right (see free |
|
Return the signed distance between two iterators (see free |
|
Return an iterator at the negated specified offset from the given iterator (see free |
|
Return an iterator at the specified offset from the given iterator (see free |
|
Return whether the iterators refer to different positions (see free |
|
Return whether the iterators refer to the same position (see free |
|
Decrement |
|
Advance |
|
Space‐efficient value‐semantic array of |
Non-Member Functions
Name |
Description |
Return |
|
Return an iterator at the specified |
|
Return an iterator at the specified |
|
Advance |
|
Return an iterator at the negated specified |
|
Return the signed distance between the specified |
|
Decrement |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
Created with MrDocs