BloombergLP::bslmt::ThroughputBenchmarkResult::ThroughputBenchmarkResult

Create a ThroughputBenchmarkResult by moving with an allocator.

Synopsis

Declared in <bslmt_throughputbenchmarkresult.h>

ThroughputBenchmarkResult(
    bslmf::MovableRef<ThroughputBenchmarkResult> original,
    bslma::Allocator* basicAllocator);

Description

Create a ThroughputBenchmarkResult object having the same value as the specified original object, using the specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The allocator of original remains unchanged. If original and the newly created object have the same allocator then the value of original becomes unspecified but valid, and no exceptions will be thrown; otherwise original is unchanged (and an exception may be thrown).

Parameters

NameDescription
originalobject to move from
basicAllocatorallocator used to supply memory