[#BloombergLP-bdlt-operator_dec-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator&hyphen;&hyphen;
:relfileprefix: ../../
:mrdocs:

Decrement operators

== Synopses

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

Regress `iterator` to the previous 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_dec-052.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/Calendar_BusinessDayConstIter.adoc[Calendar&lowbar;BusinessDayConstIter]& iterator,
    int unused);
----

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

Move `date` earlier 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_dec-01.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/Date.adoc[Date]& date,
    int unused);
----

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

Regress `iterator` to the previous 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_dec-05f.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/PackedCalendar_BusinessDayConstIterator.adoc[PackedCalendar&lowbar;BusinessDayConstIterator]& iterator,
    int unused);
----

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

Regress `iterator` to the previous 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_dec-02.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/PackedCalendar_HolidayCodeConstIterator.adoc[PackedCalendar&lowbar;HolidayCodeConstIterator]& iterator,
    int unused);
----

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

Regress `iterator` to the previous 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_dec-0e.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/PackedCalendar_HolidayConstIterator.adoc[PackedCalendar&lowbar;HolidayConstIterator]& iterator,
    int unused);
----

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

Regress `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_dec-0b.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/Timetable_ConstIterator.adoc[Timetable&lowbar;ConstIterator]& iterator,
    int unused);
----

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

Regress `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_dec-04.adoc[operator&hyphen;&hyphen;](
    xref:BloombergLP/bdlt/CalendarReverseIteratorAdapter.adoc[CalendarReverseIteratorAdapter&lt;ITERATOR&gt;]& iterator,
    int unused);
----

[.small]#xref:BloombergLP/bdlt/operator_dec-04.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;decrement value of `iterator`

== Parameters

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


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