Add category to this registry unless it is already registered.

Synopsis

Declared in <balm_metricregistry.h>

Category const*
addCategory(char const* category);

Description

Add the specified category to this registry, unless it has already been registered. Return the address of the newly‐created non‐modifiable balm::Category object on success, and 0 otherwise. The behavior is undefined unless category is null‐terminated.

Return Value

address of the newly‐created category, or 0 if already registered

Parameters

Name

Description

category

null‐terminated category name

Created with MrDocs