[#BloombergLP-bdlt-PackedCalendar-intersectBusinessDays]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PackedCalendar.adoc[PackedCalendar]::intersectBusinessDays
:relfileprefix: ../../../
:mrdocs:

Merge `other` so business days become the intersection of both&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;packedcalendar&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
intersectBusinessDays(xref:BloombergLP/bdlt/PackedCalendar.adoc[PackedCalendar] 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&apos; ranges, and the weekend days and holidays for this calendar become the union of those (non&hyphen;business) days from the two calendars &hyphen;&hyphen; i&period;e&period;, the valid business days of this calendar become the intersection of those of the two original calendar values over the _intersection_ of their ranges&period; For each holiday that remains, the resulting holiday codes in this calendar will be the union of the corresponding original holiday codes&period; See &lcub;Iterator Invalidation&rcub; for information regarding which iterators are affected by the use of this method&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| calendar to intersect with this calendar
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
