Create an empty cache of time‐zone information.

Synopsis

Declared in <baltzo_zoneinfocache.h>

explicit
ZoneinfoCache(
    Loader* loader,
    allocator_type const& allocator = allocator_type());

Description

Create an empty cache of time‐zone information that will use the specified loader to populate the cache, as‐needed, with time zone information. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. In order the populate the cache for a time zone identifier, loader must return a Zoneinfo object that is well‐formed (see ZoneinfoUtil::isWellFormed) and whose identifier matches the supplied time zone identifier.

Parameters

Name

Description

loader

loader used to populate the cache with time‐zone information

allocator

allocator used to supply memory

Created with MrDocs