[#BloombergLP-balm-Category-registerCategoryHolder]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Category.adoc[Category]::registerCategoryHolder
:relfileprefix: ../../../
:mrdocs:

Register the specified category `holder` with this category&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
registerCategoryHolder(xref:BloombergLP/balm/CategoryHolder.adoc[CategoryHolder]* holder);
----

== Description

Load into the specified `holder` the address of this category, its `enabled()` status, and the address of the next holder in the linked list of category holders maintained by this object (prepending `holder` to this category&apos;s linked list of category holders)&period; This category will update `holder&hyphen;&gt;enabled()` when its enabled state changes, and will reset `holder` (i&period;e&period;, `holder&hyphen;&gt;reset()`) when this category is destroyed&period; The behavior is undefined unless `holder` remains valid and _unmodified_ (by the client) for the lifetime of this object and is _not_ registered again with any category (including this one)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *holder*
| category holder to register
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
