[#BloombergLP-baltzo-DefaultZoneinfoCacheScopedGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::DefaultZoneinfoCacheScopedGuard
:relfileprefix: ../../
:mrdocs:

Scoped guard that installs a temporary default Zoneinfo cache&period;

== Synopsis

Declared in `&lt;baltzo&lowbar;defaultzoneinfocache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class DefaultZoneinfoCacheScopedGuard;
----

== Description

Upon construction, an object of this class saves the current default Zoneinfo cache and installs the user&hyphen;specified Zoneinfo cache as the default&period; On destruction, the previous default Zoneinfo cache is restored&period; This class is not even _minimally_ _thread_ _safe_&period; For terminology see `bsldoc&lowbar;glossary`&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baltzo/DefaultZoneinfoCacheScopedGuard/2constructor.adoc[`DefaultZoneinfoCacheScopedGuard`]         [.small]#[constructor]#
| Create a scoped guard that installs the specified `cache`&period;
| xref:BloombergLP/baltzo/DefaultZoneinfoCacheScopedGuard/2destructor.adoc[`&#126;DefaultZoneinfoCacheScopedGuard`] [.small]#[destructor]#
| Restore the default Zoneinfo cache that was in place when this scoped guard was created, and destroy this guard&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
