Return the holiday at the specified index in this calendar.

Synopsis

Declared in <bdlt_packedcalendar.h>

bdlt::Date
holiday(int index) const;

Description

Return the holiday at the specified index in this calendar. For all index values from 0 to numHolidays() ‐ 1 (inclusive), a unique holiday is returned. The mapping of index to holiday is invalidated when the set of holidays is modified by an invocation of addHoliday, addHolidayIfInRange, intersectBusinessDays, intersectNonBusinessDays, removeAll, removeHoliday, setValidRange, unionBusinessDays, or unionNonBusinessDays. The behavior is undefined unless 0 <= index < numHolidays().

Return Value

the holiday at the specified index

Parameters

Name

Description

index

position of the holiday to retrieve

Created with MrDocs