[#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. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined if `registry` is 0. == Synopsis Declared in `<balm_collectorrepository.h>` [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]#