[#BloombergLP-bdlt-DefaultCalendarCache] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DefaultCalendarCache :relfileprefix: ../../ :mrdocs: Manage the process‐wide default `CalendarCache`. == Synopsis Declared in `<bdlt_defaultcalendarcache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct DefaultCalendarCache; ---- == Description This `struct` provides a namespace for functions that manage the lifetime of, and access to, a process‐wide default `bdlt::CalendarCache` object. The default cache is initialized by an explicit call to the `initialize` class method, and destroyed by the `destroy` class method. The default cache may be initialized and destroyed multiple times during the lifetime of a process. The lifetimes of the calendar loader and memory allocator supplied to `initialize` must extend beyond the following (matching) call to `destroy`. All methods of this `struct` are fully thread‐safe (see `bsldoc_glossary`). == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/DefaultCalendarCache/destroy.adoc[`destroy`] | Destroy the default calendar cache. | xref:BloombergLP/bdlt/DefaultCalendarCache/initialize-0f.adoc[`initialize`] | `initialize` overloads | xref:BloombergLP/bdlt/DefaultCalendarCache/instance.adoc[`instance`] | Return a pointer to the default calendar cache, or 0 if uninitialized. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#