8#ifndef INCLUDED_BBLDC_PERIODICMAACTUALACTUAL
9#define INCLUDED_BBLDC_PERIODICMAACTUALACTUAL
102#include <bblscm_version.h>
108#include <bsl_vector.h>
138 double periodYearDiff);
144 double periodYearDiff);
164 const std::vector<bdlt::Date>& periodDate,
165 double periodYearDiff);
166#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR
170 const std::pmr::vector<bdlt::Date>& periodDate,
171 double periodYearDiff);
203 return endDate - beginDate;
211 double periodYearDiff)
216 periodDate.
data() + periodDate.
size(),
224 const std::vector<bdlt::Date>& periodDate,
225 double periodYearDiff)
230 const bdlt::Date *begin = periodDate.empty() ? 0 : &*periodDate.begin();
231 const bdlt::Date *end = begin + periodDate.size();
240#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR
245 const std::pmr::vector<bdlt::Date>& periodDate,
246 double periodYearDiff)
251 periodDate.data() + periodDate.size(),
Definition bdlt_date.h:294
size_type size() const BSLS_KEYWORD_NOEXCEPT
Return the number of elements in this vector.
Definition bslstl_vector.h:2664
VALUE_TYPE * data() BSLS_KEYWORD_NOEXCEPT
Definition bslstl_vector.h:2587
Definition bslstl_vector.h:1025
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bbldc_basicactual360.h:107
Definition bbldc_periodicmaactualactual.h:122
static int daysDiff(const bdlt::Date &beginDate, const bdlt::Date &endDate)
Definition bbldc_periodicmaactualactual.h:200
static double yearsDiff(const bdlt::Date &beginDate, const bdlt::Date &endDate, const bdlt::Date *periodDateBegin, const bdlt::Date *periodDateEnd, double periodYearDiff)