Scoped guard that installs a temporary default Zoneinfo cache.

Synopsis

Declared in <baltzo_defaultzoneinfocache.h>

class DefaultZoneinfoCacheScopedGuard;

Description

Upon construction, an object of this class saves the current default Zoneinfo cache and installs the user‐specified Zoneinfo cache as the default. On destruction, the previous default Zoneinfo cache is restored. This class is not even minimally thread safe. For terminology see bsldoc_glossary.

Member Functions

Name

Description

DefaultZoneinfoCacheScopedGuard [constructor]

Create a scoped guard that installs the specified cache.

~DefaultZoneinfoCacheScopedGuard [destructor]

Restore the default Zoneinfo cache that was in place when this scoped guard was created, and destroy this guard.

Created with MrDocs