[#BloombergLP-bdlt-PackedCalendar-numHolidayCodes]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PackedCalendar.adoc[PackedCalendar]::numHolidayCodes
:relfileprefix: ../../../
:mrdocs:

Return the number of holiday codes associated with `date`&period;

== Synopsis

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

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

== Description

Return the number of (unique) holiday codes associated with the specified `date` in this calendar if `date` is a holiday in this calendar, and 0 otherwise&period; The behavior is undefined unless `date` is within the valid range of this calendar&period;

== Return Value

the number of holiday codes associated with `date`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *date*
| date whose holiday codes are counted
|===


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