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

Assign to this sample the value of the specified `rhs` sample and return a reference to this modifiable sample&period; Note that copying the `MetricSampleGroup` objects contained in `rhs` copies only the pointers to their respective `MetricRecord` arrays, and does not copy records themselves&semi; hence, these record arrays must remain valid for the productive lifetimes of all copied objects or until records are removed by calling `removeAllRecords`&period;

== Synopsis

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

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


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