[#BloombergLP-balm-CollectorRepository-collectAndReset-0f6] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::collectAndReset :relfileprefix: ../../../ :mrdocs: Append to the specified `records` the collected metric record values from the collectors in this repository belonging to the specified `category`; then reset those collectors to their default values. == Synopsis Declared in `<balm_collectorrepository.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void collectAndReset( xref:bsl/vector-00d.adoc[bsl::vector<MetricRecord>]* records, xref:BloombergLP/balm/Category.adoc[Category] const* category); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#