[#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 `iterator` to the next business day and return its prior value&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 unused);
----

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

Advance `date` by one day and return its previous value&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 unused);
----

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

Advance `iterator` to the next business day and return its previous value&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 unused);
----

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

Advance `iterator` to the next holiday code and return its previous value&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 unused);
----

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

Advance `iterator` to the next holiday and return its previous value&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 unused);
----

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

Advance `iterator` and return its previous value&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 unused);
----

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

Advance `iterator` and return a copy of its prior value&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 unused);
----

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

== Return Value

* the previous value of `iterator`
* previous value of `date`
* iterator referring to the original element
* a reverse iterator having the pre&hyphen;increment value of `iterator`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *iterator*
| iterator to advance
| *unused*
| unused argument distinguishing the postfix operator
| *date*
| date to advance
|===


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