[#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&period; Return the address of the newly&hyphen;created non&hyphen;modifiable `balm&colon;&colon;Category` object on success, and 0 otherwise&period; The behavior is undefined unless `category` is null&hyphen;terminated&period;

== Synopsis

Declared in `&lt;balm&lowbar;metricregistry&period;h&gt;`

[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]#
