[#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. 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()`. == Synopsis Declared in `<balm_metricsample.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup] const& sampleGroup(int index) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#