BloombergLP::bdlt::operator--

Regress iterator to the previous holiday and return its previous value.

Synopsis

Declared in <bdlt_packedcalendar.h>

bdlt::PackedCalendar_HolidayConstIterator
operator--(
    PackedCalendar_HolidayConstIterator& iterator,
    int unused);

Description

Regress the specified iterator to refer to the previous holiday in the associated calendar, and return the previous value of iterator. The behavior is undefined unless, on entry, iterator references a valid holiday that is not the first holiday in the associated calendar.

Return Value

the previous value of iterator

Parameters

NameDescription
iteratorholiday iterator to regress
unusedunused argument distinguishing the postfix operator