Random‐access const iterator over a PackedIntArray.
Synopsis
Declared in <bdlc_packedintarray.h>
template<class TYPE>
class PackedIntArrayConstIterator;
Description
This unconstrained (value‐semantic) class represents a random access iterator providing non‐modifiable access to the elements of a PackedIntArray. 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. The returned iterator, it, referencing an element within a PackedIntArray, array, remains valid while 0 <= it ‐ array.begin() < array.length().
Type Aliases
Name |
Description |
Iterator difference type. |
|
Iterator pointer type. |
|
Iterator reference type. |
|
Iterator size type. |
|
Iterator value type. |
Member Functions
Name |
Description |
|
Constructors |
Assign to this iterator the value of the specified |
|
Return the element value referenced by this iterator. |
|
Return an iterator at the specified |
|
Advance this iterator to the next element and return |
|
Advance this iterator by the specified |
|
Return an iterator at the negated specified |
|
Decrement this iterator to the previous element and return |
|
Decrement this iterator by the specified |
|
Return the element value referenced by this iterator. |
|
Return 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 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 packed |
Non-Member Functions
Name |
Description |
Return |
|
Advance |
|
Return the number of elements between |
|
Post‐decrement the specified iterator |
|
Return true if |
|
Return |
|
Return |
|
Return true if |
|
Return |
Created with MrDocs