[#BloombergLP-balm-CollectorRepository-getAddedCollectors-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::getAddedCollectors
:relfileprefix: ../../../
:mrdocs:

`getAddedCollectors` overloads

== Synopses

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

Append shared pointers to any added collectors for the specified `metricId` and return the count found&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/CollectorRepository/getAddedCollectors-01.adoc[getAddedCollectors](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsl::shared&lowbar;ptr&lt;Collector&gt;&gt;]* collectors,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsl::shared&lowbar;ptr&lt;IntegerCollector&gt;&gt;]* intCollectors,
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/CollectorRepository/getAddedCollectors-06.adoc[getAddedCollectors](
    std::pmr::vector&lt;bsl::shared&lowbar;ptr&lt;Collector&gt;&gt;* collectors,
    std::pmr::vector&lt;bsl::shared&lowbar;ptr&lt;IntegerCollector&gt;&gt;* intCollectors,
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/CollectorRepository/getAddedCollectors-02.adoc[getAddedCollectors](
    std::vector&lt;bsl::shared&lowbar;ptr&lt;Collector&gt;&gt;* collectors,
    std::vector&lt;bsl::shared&lowbar;ptr&lt;IntegerCollector&gt;&gt;* intCollectors,
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId);
----

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

== Return Value

combined total number of added collectors found

== Parameters

[cols="1,4"]
|===
| Name| Description
| *collectors*
| receives shared pointers to added collectors
| *intCollectors*
| receives shared pointers to added integer collectors
| *metricId*
| identity of the metric whose added collectors are retrieved
|===


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