BloombergLP::bdlt::Calendar::setValidRange

Set the valid range of this calendar to [firstDate .. lastDate].

Synopsis

Declared in <bdlt_calendar.h>

void
setValidRange(
    Date const& firstDate,
    Date const& lastDate);

Description

Set the range of this calendar using the specified firstDate and lastDate as, respectively, the first date and the last date of the calendar. Any holiday that is outside the new range and its holiday codes are removed. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method. The behavior is undefined unless firstDate <= lastDate.

Parameters

NameDescription
firstDateearliest date in the new valid range
lastDatelatest date in the new valid range