[#BloombergLP-bdlt-DefaultCalendarCache]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DefaultCalendarCache
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for functions that manage the lifetime of, and access to, a process&hyphen;wide default `bdlt&colon;&colon;CalendarCache` object&period; The default cache is initialized by an explicit call to the `initialize` class method, and destroyed by the `destroy` class method&period; The default cache may be initialized and destroyed multiple times during the lifetime of a process&period; The lifetimes of the calendar loader and memory allocator supplied to `initialize` must extend beyond the following (matching) call to `destroy`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DefaultCalendarCache;
----

== Description

All methods of this `struct` are fully thread&hyphen;safe (see `bsldoc&lowbar;glossary`)&period;

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/DefaultCalendarCache/destroy.adoc[`destroy`] 
| Destroy the default `CalendarCache` object managed by this class&period; If the default cache is not in the initialized state, this method has no effect&period; Note that all addresses returned by earlier calls to `instance` are invalidated by this method&period;
| xref:BloombergLP/bdlt/DefaultCalendarCache/initialize-0f.adoc[`initialize`] 
| `initialize` overloads
| xref:BloombergLP/bdlt/DefaultCalendarCache/instance.adoc[`instance`] 
| Return an address providing modifiable access to the default `CalendarCache` object managed by this class, if the default cache is in the initialized state, and 0 otherwise&period; The cache obtains calendars using the loader that was supplied to the `initialize` method&period; Note that the returned address is invalidated by a subsequent call to `destroy`&period;
|===



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