[#BloombergLP-bbldc-PeriodDateRangeDayCountAdapter-2constructor-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter.adoc[PeriodDateRangeDayCountAdapter]::PeriodDateRangeDayCountAdapter :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bbldc_perioddaterangedaycountadapter.h>` Create a day‐count adapter that uses the specified `periodDate` and `periodYearDiff` during invocations of `yearsDiff`. `periodDate` provides the period starting dates and `periodYearDiff` defines the duration of each period (e.g., 0.25 for quarterly periods). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `periodDate.size() >= 2` and the values contained in `periodDate` are unique and sorted from minimum to maximum. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter/2constructor-00.adoc[PeriodDateRangeDayCountAdapter]( xref:bsl/vector-00d.adoc[bsl::vector<bdlt::Date>] const& periodDate, double periodYearDiff, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter/2constructor-00.adoc[_» more..._]# See the corresponding `bsl::vector` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter/2constructor-0c.adoc[PeriodDateRangeDayCountAdapter]( std::pmr::vector<bdlt::Date> const& periodDate, double periodYearDiff, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter/2constructor-0c.adoc[_» more..._]# See the corresponding `bsl::vector` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter/2constructor-0f.adoc[PeriodDateRangeDayCountAdapter]( std::vector<bdlt::Date> const& periodDate, double periodYearDiff, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter/2constructor-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#