[#BloombergLP-bdlt-Calendar-2constructor-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Calendar.adoc[Calendar]::Calendar :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlt_calendar.h>` Create an empty calendar with an empty valid range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlt/Calendar/2constructor-0e.adoc[Calendar](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlt/Calendar/2constructor-0e.adoc[_» more..._]# Create a calendar having the value of the specified `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Calendar/2constructor-08.adoc[Calendar]( xref:BloombergLP/bdlt/Calendar.adoc[Calendar] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlt/Calendar/2constructor-08.adoc[_» more..._]# Create a calendar having the same value as `packedCalendar`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlt/Calendar/2constructor-02.adoc[Calendar]( xref:BloombergLP/bdlt/PackedCalendar.adoc[bdlt::PackedCalendar] const& packedCalendar, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlt/Calendar/2constructor-02.adoc[_» more..._]# Create a calendar with the specified valid date range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Calendar/2constructor-0a.adoc[Calendar]( 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); ---- [.small]#xref:BloombergLP/bdlt/Calendar/2constructor-0a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | optional allocator used to supply memory | *original* | calendar whose value is copied | *packedCalendar* | packed calendar whose value is copied | *firstDate* | earliest date in the valid range | *lastDate* | latest date in the valid range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#