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

Create an empty calendar cache with no timeout&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
CalendarCache(
    xref:BloombergLP/bdlt/CalendarLoader.adoc[CalendarLoader]* loader,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create an empty calendar cache that uses the specified `loader` to load calendars on demand and has no timeout&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Calendars loaded into this cache remain valid for retrieval until they have been explicitly invalidated (via either the `invalidate` or `invalidateAll` methods), or until this object is destroyed&period; The behavior is undefined unless `loader` remains valid throughout the lifetime of this cache&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *loader*
| calendar loader used on demand
| *basicAllocator*
| allocator used to supply memory
|===


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