Return the category for category, registering it if needed.

Synopsis

Declared in <balm_metricregistry.h>

Category const*
getCategory(char const* category);

Description

Return the address of the non‐modifiable balm::Category object for the specified category. If no corresponding category exists, register a new category and return the address of the newly‐created balm::Category object. The behavior is undefined unless category is null‐terminated. Note that this operation is guaranteed to return a valid address.

Return Value

address of the category for category

Parameters

Name

Description

category

null‐terminated category name

Created with MrDocs