BloombergLP::bdlt::Calendar::Calendar

Constructors

Synopses

Declared in <bdlt_calendar.h>

Create an empty calendar with an empty valid range.

explicit
Calendar(bslma::Allocator* basicAllocator = 0);
» more...

Create a calendar having the value of the specified original.

Calendar(
    Calendar const& original,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a calendar having the same value as packedCalendar.

explicit
Calendar(
    bdlt::PackedCalendar const& packedCalendar,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a calendar with the specified valid date range.

Calendar(
    Date const& firstDate,
    Date const& lastDate,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatoroptional allocator used to supply memory
originalcalendar whose value is copied
packedCalendarpacked calendar whose value is copied
firstDateearliest date in the valid range
lastDatelatest date in the valid range