BloombergLP::bslstl::operator--

Regress iter to the previous element and return its previous value.

Synopsis

Declared in <bslstl_randomaccessiterator.h>

template<
    class T,
    class ITER_IMP,
    class TAG_TYPE>
bslstl::RandomAccessIterator<T, ITER_IMP, TAG_TYPE>
operator--(
    RandomAccessIterator<T, ITER_IMP, TAG_TYPE>& iter,
    int postfix);

Description

Decrement the specified iter to previous element. Return the previous value of iter. The behavior is undefined if, on entry, iter has the same value as an iterator to the start of the underlying sequence.

Return Value

previous value of iter before the decrement

Parameters

NameDescription
iteriterator to regress
postfixunused parameter distinguishing the postfix operator