[#BloombergLP-balm-MetricRegistry-addCategory] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::addCategory :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/Category.adoc[Category] const* addCategory(char const* category); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#