BloombergLP::bdlt::operator--

Decrement operators

Synopses

Declared in <bdlt_calendar.h>

Regress iterator to the previous business day and return its prior value.

Calendar_BusinessDayConstIter
operator--(
    Calendar_BusinessDayConstIter& iterator,
    int unused);
» more...

Move date earlier by one day and return its previous value.

bdlt::Date
operator--(
    Date& date,
    int unused);
» more...

Regress iterator to the previous business day and return its previous value.

bdlt::PackedCalendar_BusinessDayConstIterator
operator--(
    PackedCalendar_BusinessDayConstIterator& iterator,
    int unused);
» more...

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

bdlt::PackedCalendar_HolidayCodeConstIterator
operator--(
    PackedCalendar_HolidayCodeConstIterator& iterator,
    int unused);
» more...

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

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

Regress iterator and return its previous value.

bdlt::Timetable_ConstIterator
operator--(
    Timetable_ConstIterator& iterator,
    int unused);
» more...

Regress iterator and return a copy of its prior value.

template<class ITERATOR>
bdlt::CalendarReverseIteratorAdapter<ITERATOR>
operator--(
    CalendarReverseIteratorAdapter<ITERATOR>& iterator,
    int unused);
» more...

Return Value

  • the previous value of iterator
  • previous value of date
  • iterator referring to the original element
  • a reverse iterator having the pre-decrement value of iterator

Parameters

NameDescription
iteratoriterator to regress
unusedunused argument distinguishing the postfix operator
datedate to move earlier