[#BloombergLP-balm-MetricSample-2constructor-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricSample.adoc[MetricSample]::MetricSample
:relfileprefix: ../../../
:mrdocs:

Create a metric sample containing the same value as the specified `original` sample&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that copying the contained `MetricSampleGroup` objects copies only the pointers to their respective `MetricRecord` arrays, and does not copy the records themselves&semi; hence, these record arrays must remain valid for the productive lifetimes of all copied objects or until the records are removed by calling `removeAllRecords`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
MetricSample(
    xref:BloombergLP/balm/MetricSample.adoc[MetricSample] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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