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.
Synopsis
Declared in <bdlc_compactedarray.h>
template<class TYPE>
class CompactedArray_ConstIterator;
Description
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 |
|
Advance this iterator to refer to the next location in the referenced array, and return a reference to this iterator after the advancement. The returned iterator, |
|
Advance this iterator by the specified |
|
Decrement this iterator to refer to the previous location in the referenced array, and return a reference to this iterator after the decrementation. The returned iterator, |
|
Decrement this iterator by the specified |
|
Return a |
|
Return a |
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 |
|
This space‐efficient, value‐semantic array class represents a sequence of |
Non-Member Functions
Name |
Description |
Return |
|
Same as the preceding overload with operands swapped. |
|
Return an iterator referencing the location at the specified |
|
Advance the specified |
|
Return an iterator referencing the location at the specified |
|
Return the number of elements between the specified |
|
Decrement the specified |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
Created with MrDocs