Decrement iterator and return its prior value.
Declared in <bdlc_compactedarray.h>
template<class TYPE>
bdlc::CompactedArray_ConstIterator<TYPE>
operator--(
CompactedArray_ConstIterator<TYPE>& iterator,
int unused);
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().
iterator referring to the prior position
| Name | Description |
|---|---|
| iterator | iterator to decrement |
| unused | unused postfix discriminator |