BloombergLP::bdlt::Calendar::addHoliday

Mark the specified date as a holiday in this calendar.

Synopsis

Declared in <bdlt_calendar.h>

void
addHoliday(Date const& date);

Description

Mark the specified date as a holiday (i.e., a non-business day) in this calendar. Extend the valid range of this calendar if necessary. If date is already marked as a holiday, 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