[#BloombergLP-balm-CollectorRepository-collect-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::collect
:relfileprefix: ../../../
:mrdocs:

`collect` overloads

== Synopses

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

Append collected metric records for the specified category without resetting collectors&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/CollectorRepository/collect-0a.adoc[collect](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;MetricRecord&gt;]* records,
    xref:BloombergLP/balm/Category.adoc[Category] const* category);
----

[.small]#xref:BloombergLP/balm/CollectorRepository/collect-0a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using a `std&colon;&colon;pmr&colon;&colon;vector` result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/CollectorRepository/collect-09.adoc[collect](
    std::pmr::vector&lt;MetricRecord&gt;* records,
    xref:BloombergLP/balm/Category.adoc[Category] const* category);
----

[.small]#xref:BloombergLP/balm/CollectorRepository/collect-09.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using a `std&colon;&colon;vector` result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/CollectorRepository/collect-03.adoc[collect](
    std::vector&lt;MetricRecord&gt;* records,
    xref:BloombergLP/balm/Category.adoc[Category] const* category);
----

[.small]#xref:BloombergLP/balm/CollectorRepository/collect-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *records*
| receives the collected metric records
| *category*
| category whose collectors are collected
|===


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