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

Initialize the default `CalendarCache` object managed by this class to use the specified `loader` to obtain calendars, to have no timeout, and to use the specified `allocator` to supply memory&period; If the default cache is already in the initialized state, this method has no effect&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `loader` and `allocator` remain valid until a subsequent call to `destroy`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
initialize(
    xref:BloombergLP/bdlt/CalendarLoader.adoc[CalendarLoader]* loader,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator);
----


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