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

Return a shared pointer providing non&hyphen;modifiable access to the calendar having the specified `calendarName` in this calendar cache, loading the calendar into the cache using the loader that was supplied at construction if the calendar is not already present in the cache or if the calendar has expired (i&period;e&period;, per a timeout optionally supplied at construction)&period; If the loader fails, whether in loading a calendar for the first time or in reloading a calendar that has expired, return an empty shared pointer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Calendar const&gt;]
getCalendar(char const* calendarName);
----


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