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

Create a day&hyphen;count adapter that uses the specified `periodDate` and `periodYearDiff`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
PeriodDateRangeDayCountAdapter(
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bdlt::Date&gt;] const& periodDate,
    double periodYearDiff,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a day&hyphen;count adapter that uses the specified `periodDate` and `periodYearDiff` during invocations of `yearsDiff`&period; `periodDate` provides the period starting dates and `periodYearDiff` defines the duration of each period (e&period;g&period;, 0&period;25 for quarterly periods)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `periodDate&period;size() &gt;&equals; 2` and the values contained in `periodDate` are unique and sorted from minimum to maximum&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *periodDate*
| sorted unique period&hyphen;boundary dates
| *periodYearDiff*
| year fraction of each period
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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