[#BloombergLP-balm-MetricSampleGroup-operator_assign]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assign to this sample group the value of the specified `rhs` sample group, and return a reference to this modifiable sample group&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup]&
operator&equals;(xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup] const& rhs);
----

== Description

Note that only the pointer to the `MetricRecord` array and the length are copied, and not the records themselves&period;

== Return Value

reference to this modifiable sample group

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| sample group to assign from
|===


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