BloombergLP::bdlc::operator--

Decrement iterator and return its prior value.

Synopsis

Declared in <bdlc_compactedarray.h>

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

Description

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

Return Value

iterator referring to the prior position

Parameters

NameDescription
iteratoriterator to decrement
unusedunused postfix discriminator