Return the weekend‐days transition at the specified index.

Synopsis

Declared in <bdlt_calendar.h>

Calendar::WeekendDaysTransition
weekendDaysTransition(int index) const;

Description

Return the weekend‐days transition at the specified index in this calendar. For all index values from 0 to numWeekendDaysTransitions() ‐ 1 (inclusive), a unique weekend‐days transition is returned. The mapping of index to weekend‐days transition is invalidated when the set of weekend‐days transitions is modified by an invocation of addWeekendDay, addWeekendDays, addWeekendDaysTransition, intersectBusinessDays, intersectNonBusinessDays, removeAll, unionBusinessDays, or unionNonBusinessDays. The behavior is undefined unless 0 <= index < numWeekendDaysTransitions().

Return Value

the weekend‐days transition at index

Parameters

Name

Description

index

position of the transition in chronological order

Created with MrDocs