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.
Synopsis
Declared in <bdlc_packedintarray.h>
template<class TYPE>
class PackedIntArrayConstIterator;
Description
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. The behavior is undefined unless for this iterator, referencing an element within a |
|
Return an iterator referencing the location at the specified |
|
Advance this iterator to refer to the next element in the referenced array and return a reference to this iterator after the advancement. The returned iterator, |
|
Advance this iterator by the specified |
|
Return an iterator referencing the location at the specified |
|
Decrement this iterator to refer to the previous element in the referenced array and return a reference to this iterator after the decrementation. The returned iterator, |
|
Decrement this iterator by the specified |
|
Return the element value referenced by this iterator. The behavior is undefined unless for this iterator, referencing an element within a |
|
Return the element that is the specified |
Friends
Name |
Description |
This space‐efficient value‐semantic array class represents a sequence of |
Non-Member Functions
Name |
Description |
Return |
|
Advance the specified iterator |
|
Return the number of elements between specified |
|
Post‐decrement the specified iterator |
|
Return true if |
|
Return |
|
Return |
|
Return true if |
|
Return |
Created with MrDocs