[#BloombergLP-balm-MetricRegistry-setAllCategoriesEnabled] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::setAllCategoriesEnabled :relfileprefix: ../../../ :mrdocs: Set whether each currently registered category is enabled to the specified `value`, and ensure that categories registered after this call are initialized as either enabled or disabled, accordingly. This operation is logically equivalent to iterating over the list of currently registered categories and calling `setCategoryEnabled` on each category individually, and also setting a default `enabled` value (for newly‐created categories). Hence, subsequent calls `setCategoryEnabled` will override this value for a particular category. Note that this operation is thread‐safe, but _not_ atomic: Other threads may simultaneously access the current enabled status for registered categories while this operation completes. Also note that this operation has _linear_ runtime performance with respect to the total number of category holders registered with this repository. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setAllCategoriesEnabled(bool value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#