Random-access const iterator over a PackedIntArray.
Declared in <bdlc_packedintarray.h>
template<class TYPE>
class PackedIntArrayConstIterator;
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().
| Name | Description |
|---|---|
difference_type | Iterator difference type. |
pointer | Iterator pointer type. |
reference | Iterator reference type. |
size_type | Iterator size type. |
value_type | Iterator value type. |
| Name | Description |
|---|---|
PackedIntArrayConstIterator [constructor] | Constructors |
operator= | Assign to this iterator the value of the specified rhs iterator. |
operator* | Return the element value referenced by this iterator. |
operator+ | Return an iterator at the specified offset from this iterator. |
operator++ | Advance this iterator to the next element and return *this. |
operator+= | Advance this iterator by the specified offset. |
operator- | Return an iterator at the negated specified offset from this iterator. |
operator-- | Decrement this iterator to the previous element and return *this. |
operator-= | Decrement this iterator by the specified offset. |
operator-> | Return the element value referenced by this iterator. |
operator[] | Return the element at the specified offset from this iterator. |
| Name | Description |
|---|---|
BloombergLP::bdlc::operator>=<> | Return whether the left iterator follows or equals the right (see free operator>=). |
BloombergLP::bdlc::operator><> | Return whether the left iterator follows the right (see free operator>). |
BloombergLP::bdlc::operator<=<> | Return whether the left iterator precedes or equals the right (see free operator<=). |
BloombergLP::bdlc::operator<<> | Return whether the left iterator precedes the right (see free operator<). |
BloombergLP::bdlc::operator-<> | Return the signed distance between two iterators (see free operator-). |
BloombergLP::bdlc::operator!=<> | Return whether the iterators refer to different positions (see free operator!=). |
BloombergLP::bdlc::operator==<> | Return whether the iterators refer to the same position (see free operator==). |
BloombergLP::bdlc::operator--<> | Decrement iter and return its prior value (see free operator--). |
BloombergLP::bdlc::operator++<> | Advance iter and return its prior value (see free operator++). |
BloombergLP::bdlc::PackedIntArray | Space-efficient value-semantic array of packed TYPE integers. |
| Name | Description |
|---|---|
operator!= | Return true if lhs and rhs refer to different positions. |
operator++ | Advance iter and return its prior value. |
operator- | Return the number of elements between lhs and rhs. |
operator-- | Post-decrement the specified iterator iter. |
operator< | Return true if lhs precedes rhs in the referenced array. |
operator<= | Return true if lhs precedes or equals rhs. |
operator== | Return true if lhs and rhs refer to the same position. |
operator> | Return true if lhs follows rhs in the referenced array. |
operator>= | Return true if lhs follows or equals rhs. |