[#BloombergLP-bdlt-PackedCalendar-2constructor-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PackedCalendar.adoc[PackedCalendar]::PackedCalendar
:relfileprefix: ../../../
:mrdocs:

Create a calendar with the specified valid date range&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;packedcalendar&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
PackedCalendar(
    xref:BloombergLP/bdlt/Date.adoc[Date] const& firstDate,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& lastDate,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a calendar having a valid range from the specified `firstDate` through the specified `lastDate`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `firstDate &lt;&equals; lastDate`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *firstDate*
| earliest date in the valid range
| *lastDate*
| latest date in the valid range
| *basicAllocator*
| optional allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
