BloombergLP::balm::MetricSample::sampleGroup

Return a reference to the non-modifiable MetricSampleGroup object at the specified index in this sample.

Synopsis

Declared in <balm_metricsample.h>

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

NameDescription
indexzero-based index of the sample group