[#BloombergLP-balm-MetricSample-sampleGroup] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSample.adoc[MetricSample]::sampleGroup :relfileprefix: ../../../ :mrdocs: Return a reference to the non‐modifiable `MetricSampleGroup` object at the specified `index` in this sample. == Synopsis Declared in `<balm_metricsample.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup] const& sampleGroup(int index) const; ---- == Description The behavior is undefined unless `0 <= index < numGroups()`. Note that the returned reference will remain valid until this sample is modified by invoking `appendGroup` or `removeAllRecords()`. == Return Value non‐modifiable reference to the sample group at `index` == Parameters [cols="1,4"] |=== | Name| Description | *index* | zero‐based index of the sample group |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#