[#BloombergLP-ball-LoggerManager-maxNumCategories]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::maxNumCategories
:relfileprefix: ../../../
:mrdocs:

Return the current capacity of the category registry&period;

== Synopsis

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
maxNumCategories() const;
----

== Description

Return the current capacity of the category registry of this logger manager&period; A capacity of 0 implies that no limit will be imposed&semi; otherwise, new categories may be added only if `numCategories() &lt; maxNumCategories()`&period; Note that `0 &lt; maxNumCategories() &lt; numCategories()` _is_ a valid state, implying no new categories may be added&period;

== Return Value

current capacity of the category registry (0 means no limit)


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