Create a copy of the specified original metric sample.
Synopsis
Declared in <balm_metricsample.h>
MetricSample(
MetricSample const& original,
bslma::Allocator* basicAllocator = 0);
Description
Create a metric sample containing the same value as the specified original sample. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that copying the contained MetricSampleGroup objects copies only the pointers to their respective MetricRecord arrays, and does not copy the records themselves; hence, these record arrays must remain valid for the productive lifetimes of all copied objects or until the records are removed by calling removeAllRecords.
Parameters
Name |
Description |
original |
sample to copy |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs