[#BloombergLP-balm-MetricSample-operator_assign] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSample.adoc[MetricSample]::operator= :relfileprefix: ../../../ :mrdocs: Assign to this sample the value of the specified `rhs` sample and return a reference to this modifiable sample. Note that copying the `MetricSampleGroup` objects contained in `rhs` copies only the pointers to their respective `MetricRecord` arrays, and does not copy records themselves; hence, these record arrays must remain valid for the productive lifetimes of all copied objects or until records are removed by calling `removeAllRecords`. == Synopsis Declared in `<balm_metricsample.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricSample.adoc[MetricSample]& operator=(xref:BloombergLP/balm/MetricSample.adoc[MetricSample] const& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#