Advance 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);
Advance the specified iterator to refer to the next location in the referenced array, and return an iterator referring to the original location (before the advancement). 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 iterator - array.begin() < array.length().
iterator referring to the prior position
| Name | Description |
|---|---|
| iterator | iterator to advance |
| unused | unused postfix discriminator |