BloombergLP::baltzo::DefaultZoneinfoCache::defaultCache

Return the default Zoneinfo cache, or cache if non-null.

Synopsis

Declared in <baltzo_defaultzoneinfocache.h>

static
ZoneinfoCache*
defaultCache(ZoneinfoCache* cache = 0);

Description

Return the default ZoneinfoCache object for this process if the optionally specified cache is 0, and cache otherwise. If cache is 0, and the default Zoneinfo cache object has not been set -- either explicitly with a call to setDefaultCache, or implicitly through a prior call to this method -- then initialize a new ZoneinfoCache object, set the default cache object to the newly created object, and return its address.

Return Value

cache if non-null; otherwise the process default cache

Parameters

NameDescription
cacheoptional cache to return instead of the default