BloombergLP::bdlt::CalendarCache::invalidate

Invalidate and remove the named calendar from this cache.

Synopsis

Declared in <bdlt_calendarcache.h>

int
invalidate(char const* calendarName);

Description

Invalidate the calendar having the specified calendarName in this calendar cache, and remove it from the cache. If a calendar having calendarName is not present in this cache, this method has no effect. Return the number of calendars that were invalidated. Note that a calendar that has been invalidated in the cache remains valid to all outstanding references to it, obtained via earlier calls to the getCalendar and lookupCalendar methods, until all of those references have been destroyed.

Return Value

number of calendars invalidated

Parameters

NameDescription
calendarNamename of the calendar to invalidate