[#BloombergLP-bbldc-CalendarDateRangeDayCountAdapter-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/CalendarDateRangeDayCountAdapter.adoc[CalendarDateRangeDayCountAdapter]::CalendarDateRangeDayCountAdapter
:relfileprefix: ../../../
:mrdocs:

Create a day&hyphen;count adapter that uses the specified `calendar` during invocations of `daysDiff` and `yearsDiff`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;calendardaterangedaycountadapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CalendarDateRangeDayCountAdapter(
    xref:BloombergLP/bdlt/Calendar.adoc[bdlt::Calendar] const& calendar,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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