This class implements a scoped guard that, on construction, creates the default instance of the metrics manager, and, on destruction, destroys that instance. Note that the behavior is undefined if the default instance of the metrics manager is created before creating this guard, or if the default instance is externally destroyed before destroying this guard.

Synopsis

Declared in <balm_defaultmetricsmanager.h>

class DefaultMetricsManagerScopedGuard;

Member Functions

Name

Description

DefaultMetricsManagerScopedGuard [constructor]

Constructors

~DefaultMetricsManagerScopedGuard [destructor]

Destroy this scoped guard which invokes DefaultMetricsManager::destroy(). The behavior is undefined if the default instance of the metrics manager is externally destroyed prior to this destructor being invoked.

instance

Return the address of the MetricsManager object managed by this scoped guard. The behavior is undefined if the default instance of the metrics manager is externally destroyed, or if the returned address is retained after this scoped guard is destroyed.

Created with MrDocs