[#BloombergLP-balm-MetricSampleGroup-setRecords]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup]::setRecords
:relfileprefix: ../../../
:mrdocs:

Set the sequence of records referred to by this sample group to the specified sequence of `records` of specified length `numRecords`&period; The behavior is undefined unless `0 &lt;&equals; numRecords`, and `records` refers to a contiguous sequence of (at least) `numRecords`&period; Note that the contents of `records` is _not_ copied and the supplied array must remain valid for the productive lifetime of this object or until the records are set to a different sequence by calling the `setRecords` manipulator&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setRecords(
    xref:BloombergLP/balm/MetricRecord.adoc[MetricRecord] const* records,
    int numRecords);
----


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