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

Create a scoped guard that installs the specified `cache`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
DefaultZoneinfoCacheScopedGuard(xref:BloombergLP/baltzo/ZoneinfoCache.adoc[ZoneinfoCache]* cache);
----

== Description

Create a scoped guard that installs the specified `cache` as the default Zoneinfo cache&period; Note that the pre&hyphen;existing default time Zoneinfo cache is automatically restored on destruction of this object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cache*
| Zoneinfo cache to install as the default
|===


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