Create a day‐count adapter that uses the specified periodDate and periodYearDiff.
Synopsis
Declared in <bbldc_perioddaterangedaycountadapter.h>
PeriodDateRangeDayCountAdapter(
bsl::vector<bdlt::Date> const& periodDate,
double periodYearDiff,
bslma::Allocator* basicAllocator = 0);
Description
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.
Parameters
Name |
Description |
periodDate |
sorted unique period‐boundary dates |
periodYearDiff |
year fraction of each period |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs