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
Name |
Description |
original |
object to move from |
basicAllocator |
allocator used to supply memory |
Created with MrDocs