BloombergLP::bdlc::operator--

Post-decrement the specified iterator iter.

Synopsis

Declared in <bdlc_packedintarray.h>

template<class TYPE>
bdlc::PackedIntArrayConstIterator<TYPE>
operator--(
    PackedIntArrayConstIterator<TYPE>& iter,
    int unused);

Description

Decrement the specified iterator iter to refer to the previous element in the referenced array, and return an iterator referring to the original element (before the decrementation). The returned iterator, it, referencing an element within a PackedIntArray, array, remains valid as long as 0 <= it - array.begin() <= array.length(). The behavior is undefined unless, on entry, PackedIntArrayConstInterator() != iter and 0 < iter - array.begin().

Specializations

NameDescription
operator--<> Decrement iter and return its prior value (see free operator--).

Return Value

iterator referring to the prior position

Parameters

NameDescription
iteriterator to decrement
unusedunused parameter distinguishing post-decrement