Mark date as a holiday if it is within the valid range.

Synopsis

Declared in <bdlt_calendar.h>

int
addHolidayIfInRange(Date const& date);

Description

Mark the specified date as a holiday (i.e., a non‐business day) in this calendar if date is within the valid range. Return 0 if date is in range, and a non‐zero value otherwise. This method has no effect if date is already marked as a holiday or is not in the valid range. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method.

Return Value

0 if date is in range, and a non‐zero value otherwise

Parameters

Name

Description

date

date to mark as a holiday if in range

Created with MrDocs