[#BloombergLP-bslstl-operator_inc-005] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::operator++ :relfileprefix: ../../ :mrdocs: Advance `iter` to the next element and return its previous value. == Synopsis Declared in `<bslstl_randomaccessiterator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class ITER_IMP, class TAG_TYPE> xref:BloombergLP/bslstl/RandomAccessIterator.adoc[bslstl::RandomAccessIterator<T, ITER_IMP, TAG_TYPE>] operator++( xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator<T, ITER_IMP, TAG_TYPE>]& iter, int postfix); ---- == Description Increment the specified `iter` to next element. Return the previous value of `iter`. The behavior is undefined if, on entry, `iter` has the past‐the‐end value for an iterator of the underlying sequence. == Return Value previous value of `iter` before the increment == Parameters [cols="1,4"] |=== | Name| Description | *iter* | iterator to advance | *postfix* | unused parameter distinguishing the postfix operator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#