BloombergLP::balm::DefaultMetricsManager::manager

Return the specified manager if non-null, and the default metrics manager instance otherwise.

Synopsis

Declared in <balm_defaultmetricsmanager.h>

static
MetricsManager*
manager(MetricsManager* manager = 0);

Description

If the optionally specified manager is not 0, return manager; 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. Note that this operation is logically equivalent to manager ? manager : instance().

Return Value

manager if non-null; otherwise the default instance, or 0

Parameters

NameDescription
managermetrics manager to return, or 0 to use the default