[#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. == 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); ---- == Description 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. == Parameters [cols="1,4"] |=== | Name| Description | *registry* | metric registry used to identify managed metrics | *basicAllocator* | optional allocator to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#