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

Append to the specified `collectors` and `intCollectors` the shared pointers to any added collectors for the specified `metricId`, and return the combined total number found&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
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]#Created with https://www.mrdocs.com[MrDocs]#
