[#BloombergLP-bdlt-Calendar-addHolidayCode] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Calendar.adoc[Calendar]::addHolidayCode :relfileprefix: ../../../ :mrdocs: Mark the specified `date` as a holiday (i.e., a non‐business day) in this calendar and add the specified `holidayCode` (if not already present) to the ordered set of codes associated with `date`. Extend the valid range of this calendar if necessary. If `holidayCode` is already a code for `date`, this method has no effect. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method. Note that this method may be called repeatedly with the same value for `date` to build up a set of holiday codes for that date. == Synopsis Declared in `<bdlt_calendar.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void addHolidayCode( xref:BloombergLP/bdlt/Date.adoc[Date] const& date, int holidayCode); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#