BloombergLP::bdlt::operator++

Advance iterator and return a copy of its prior value.

Synopsis

Declared in <bdlt_calendarreverseiteratoradapter.h>

template<class ITERATOR>
bdlt::CalendarReverseIteratorAdapter<ITERATOR>
operator++(
    CalendarReverseIteratorAdapter<ITERATOR>& iterator,
    int unused);

Description

Modify the specified iterator to refer to the next element in the reverse iteration sequence, and return a reverse iterator having the pre-increment value of iterator. The behavior is undefined unless, on entry, iterator does not have the past-the-end value for a reverse iterator over the underlying sequence.

Return Value

a reverse iterator having the pre-increment value of iterator

Parameters

NameDescription
iteratorreverse iterator to advance
unusedunused parameter distinguishing the postfix operator