Create a day‐count adapter that uses the specified calendar.
Synopsis
Declared in <bbldc_calendardaterangedaycountadapter.h>
CalendarDateRangeDayCountAdapter(
bdlt::Calendar const& calendar,
bslma::Allocator* basicAllocator = 0);
Description
Create a day‐count adapter that uses the specified calendar during invocations of daysDiff and yearsDiff. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Parameters
Name |
Description |
calendar |
calendar used for day‐count calculations |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs