BloombergLP::bdlt::Calendar::intersectBusinessDays

Merge other so business days become the intersection of both calendars.

Synopsis

Declared in <bdlt_calendar.h>

void
intersectBusinessDays(Calendar const& other);

Description

Merge the specified other calendar into this calendar such that the valid range of this calendar becomes the intersection of the two calendars' ranges, and the weekend days and holidays for this calendar become the union of those (non-business) days from the two calendars -- i.e., the valid business days of this calendar become the intersection of those of the two original calendar values over the intersection of their ranges. For each holiday that remains, the resulting holiday codes in this calendar will be the union of the corresponding original holiday codes. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method.

Parameters

NameDescription
othercalendar to intersect with this calendar