[#BloombergLP-balm-DefaultMetricsManager]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::DefaultMetricsManager
:relfileprefix: ../../
:mrdocs:

This struct provides a namespace for static functions that create, access, and destroy the default instance of the `MetricsManager`&period; The expected usage is that the default instance will be created during the initialization of an application (while the task has a single thread) and that it will be destroyed just prior to termination (when there is similarly a single thread)&period;

== Synopsis

Declared in `&lt;balm&lowbar;defaultmetricsmanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DefaultMetricsManager;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/DefaultMetricsManager/create-02.adoc[`create`] 
| `create` overloads
| xref:BloombergLP/balm/DefaultMetricsManager/destroy.adoc[`destroy`] 
| Destroy the default instance of `MetricsManager`&period; After this method returns, `instance()` will return 0&period; The behavior is undefined if `instance()` is 0 or if this method is called from one thread while another thread is accessing the default metrics manager instance (i&period;e&period;, this method is _not_ thread&hyphen;safe)&period;
| xref:BloombergLP/balm/DefaultMetricsManager/instance.adoc[`instance`] 
| Return the default instance of the `MetricsManager` or 0 if the default instance has not yet been created or has already been destroyed&period;
| xref:BloombergLP/balm/DefaultMetricsManager/manager.adoc[`manager`] 
| If the optionally specified `manager` is not 0, return `manager`&semi; otherwise return the address of the default metrics manager instance, or 0 if the default metrics manager instance has not yet been created or has already been destroyed&period; Note that this operation is logically equivalent to `manager ? manager &colon; instance()`&period;
|===



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