BloombergLP::bdlt::PackedCalendar::addHolidayCode

Mark date as a holiday and add holidayCode for that date.

Synopsis

Declared in <bdlt_packedcalendar.h>

void
addHolidayCode(
    Date const& date,
    int holidayCode);

Description

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.

Parameters

NameDescription
datedate to mark as a holiday
holidayCodecode to associate with date