BloombergLP::bdlt::CalendarCache::CalendarCache

Create an empty calendar cache with no timeout.

Synopsis

Declared in <bdlt_calendarcache.h>

explicit
CalendarCache(
    CalendarLoader* loader,
    bslma::Allocator* basicAllocator = 0);

Description

Create an empty calendar cache that uses the specified loader to load calendars on demand and has no timeout. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. 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. The behavior is undefined unless loader remains valid throughout the lifetime of this cache.

Parameters

NameDescription
loadercalendar loader used on demand
basicAllocatorallocator used to supply memory