[#BloombergLP-balm-CollectorRepository-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::CollectorRepository
:relfileprefix: ../../../
:mrdocs:

Create an empty collector repository that will use the specified `registry` to identify the metrics for which it manages collectors&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined if `registry` is 0&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CollectorRepository(
    xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]* registry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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