Advance 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

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().

Return Value

iterator referring to the prior position

Parameters

Name

Description

iterator

iterator to advance

unused

unused postfix discriminator

Created with MrDocs