[#BloombergLP-bdlt-operator_inc-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator&plus;&plus;
:relfileprefix: ../../
:mrdocs:

Increment operators

== Synopses

Declared in `&lt;bdlt&lowbar;calendar&period;h&gt;`

Advance the specified `iterator` to refer to the next business day in the associated calendar, and return the previous value of `iterator`&period; The behavior is undefined unless, on entry, `iterator` references a valid business day&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Calendar_BusinessDayConstIter.adoc[Calendar&lowbar;BusinessDayConstIter]
xref:BloombergLP/bdlt/operator_inc-0ad.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/Calendar_BusinessDayConstIter.adoc[Calendar&lowbar;BusinessDayConstIter]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-0ad.adoc[_» more&period;&period;&period;_]#

Set the specified `date` object to have the value that is one day later than its current value, and return the value of `date` on entry&period; The behavior is undefined if the value of `date` on entry is `9999&sol;12&sol;31`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]
xref:BloombergLP/bdlt/operator_inc-0f.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/Date.adoc[Date]& date,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-0f.adoc[_» more&period;&period;&period;_]#

Advance the specified `iterator` to refer to the next business day in the associated calendar, and return the previous value of `iterator`&period; The behavior is undefined unless, on entry, `iterator` references a valid business day&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/PackedCalendar_BusinessDayConstIterator.adoc[bdlt::PackedCalendar&lowbar;BusinessDayConstIterator]
xref:BloombergLP/bdlt/operator_inc-097.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/PackedCalendar_BusinessDayConstIterator.adoc[PackedCalendar&lowbar;BusinessDayConstIterator]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-097.adoc[_» more&period;&period;&period;_]#

Advance the specified `iterator` to refer to the next holiday code for the associated date in the associated calendar, and return the previous value of `iterator`&period; The behavior is undefined unless, on entry, `iterator` references a valid holiday code&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/PackedCalendar_HolidayCodeConstIterator.adoc[bdlt::PackedCalendar&lowbar;HolidayCodeConstIterator]
xref:BloombergLP/bdlt/operator_inc-0af.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/PackedCalendar_HolidayCodeConstIterator.adoc[PackedCalendar&lowbar;HolidayCodeConstIterator]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-0af.adoc[_» more&period;&period;&period;_]#

Advance the specified `iterator` to refer to the next holiday in the associated calendar, and return the previous value of `iterator`&period; The behavior is undefined unless, on entry, `iterator` references a valid holiday&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/PackedCalendar_HolidayConstIterator.adoc[bdlt::PackedCalendar&lowbar;HolidayConstIterator]
xref:BloombergLP/bdlt/operator_inc-09c.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/PackedCalendar_HolidayConstIterator.adoc[PackedCalendar&lowbar;HolidayConstIterator]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-09c.adoc[_» more&period;&period;&period;_]#

Advance the specified `iterator` to refer to the next transition in the referenced timetable, and return an iterator referring to the original element (_before_ the advancement)&period; The behavior is undefined unless, on entry, `iterator` references a valid transition&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Timetable_ConstIterator.adoc[bdlt::Timetable&lowbar;ConstIterator]
xref:BloombergLP/bdlt/operator_inc-0b.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/Timetable_ConstIterator.adoc[Timetable&lowbar;ConstIterator]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-0b.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ITERATOR&gt;
xref:BloombergLP/bdlt/CalendarReverseIteratorAdapter.adoc[bdlt::CalendarReverseIteratorAdapter&lt;ITERATOR&gt;]
xref:BloombergLP/bdlt/operator_inc-0a2.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlt/CalendarReverseIteratorAdapter.adoc[CalendarReverseIteratorAdapter&lt;ITERATOR&gt;]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlt/operator_inc-0a2.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
