Remove holidayCode from the holiday at the specified date.

Synopsis

Declared in <bdlt_calendar.h>

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

Description

Remove from this calendar the specified holidayCode for the holiday having the specified date if such a holiday having holidayCode exists. This operation has no effect if date is not a holiday in this calendar, or if the holiday at date does not have holidayCode associated with it. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method. Note that this method is defined for all date values, not just those that fall within the valid range, and may be invoked even on an empty calendar (i.e., having 0 == length()).

Parameters

Name

Description

date

holiday date whose code is removed

holidayCode

holiday code to remove from date

Created with MrDocs