[#BloombergLP-bdlt-Calendar-intersectNonBusinessDays-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Calendar.adoc[Calendar]::intersectNonBusinessDays
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
intersectNonBusinessDays(xref:BloombergLP/bdlt/Calendar.adoc[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&apos; ranges, the weekend days for this calendar become the intersection of those days from the two calendars, and the holidays for this calendar become the set of days that are a holiday in one of the calendars and a non&hyphen;business day in the other calendar &hyphen;&hyphen; i&period;e&period;, the valid business days of this calendar become the union of those of the two original calendars 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]#
