BloombergLP::bdlt::Calendar::Calendar

Create a calendar with the specified valid date range.

Synopsis

Declared in <bdlt_calendar.h>

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

Description

Create a calendar having a valid range from the specified firstDate through the specified lastDate. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless firstDate <= lastDate.

Parameters

NameDescription
firstDateearliest date in the valid range
lastDatelatest date in the valid range
basicAllocatoroptional allocator used to supply memory