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

Create an empty cache of time&hyphen;zone information&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
ZoneinfoCache(
    xref:BloombergLP/baltzo/Loader.adoc[Loader]* loader,
    xref:BloombergLP/baltzo/ZoneinfoCache/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

== Description

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *loader*
| loader used to populate the cache with time&hyphen;zone information
| *allocator*
| allocator used to supply memory
|===


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