[#BloombergLP-bdlt-Calendar-holiday]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Calendar.adoc[Calendar]::holiday
:relfileprefix: ../../../
:mrdocs:

Return the holiday at the specified `index` in this calendar&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Date.adoc[Date]
holiday(int index) const;
----

== Description

Return the holiday at the specified `index` in this calendar&period; For all `index` values from 0 to `numHolidays() &hyphen; 1` (inclusive), a unique holiday is returned&period; The mapping of `index` to holiday is invalidated when the set of holidays is modified by an invocation of `addHoliday`, `addHolidayIfInRange`, `intersectBusinessDays`, `intersectNonBusinessDays`, `removeAll`, `removeHoliday`, `setValidRange`, `unionBusinessDays`, or `unionNonBusinessDays`&period; The behavior is undefined unless `0 &lt;&equals; index &lt; numHolidays()`&period;

== Return Value

the holiday at `index`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| position of the holiday in the ordered holiday sequence
|===


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