[#BloombergLP-balm-MetricRegistry-registerCategoryHolder] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::registerCategoryHolder :relfileprefix: ../../../ :mrdocs: Load into the specified `holder` the address of the specified `category`, its `enabled` status, and the address of the next holder in the linked list of category holders maintained by `category` (prepending `holder` to the linked list of category holders for `category`). The supplied `category` will update the value returned by `holder‐>enabled()` when its enabled state changes, and will reset `holder` (i.e., `holder‐>reset()`) when `category` is destroyed. The behavior is undefined unless `holder` remains valid and _unmodified_ (by the client) for the lifetime of this object. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerCategoryHolder( xref:BloombergLP/balm/Category.adoc[Category] const* category, xref:BloombergLP/balm/CategoryHolder.adoc[CategoryHolder]* holder); ---- == Description This method should _not_ be used directly by client code. It is an implementation detail of the `balm` metric collection system. [.small]#Created with https://www.mrdocs.com[MrDocs]#