Constructors
Synopses
Declared in <bslmt_throughputbenchmarkresult.h>
Create a ThroughputBenchmarkResult object having the same value and the same allocator as the specified original object. The value of original becomes unspecified but valid, and its allocator remains unchanged.
ThroughputBenchmarkResult(bslmf::MovableRef<ThroughputBenchmarkResult> original) noexcept;
Create an empty ThroughputBenchmarkResult object. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that this object has to be initialized before it can be used.
explicit
ThroughputBenchmarkResult(bslma::Allocator* basicAllocator = 0);
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).
ThroughputBenchmarkResult(
bslmf::MovableRef<ThroughputBenchmarkResult> original,
bslma::Allocator* basicAllocator);
Create a ThroughputBenchmarkResult object having the value of the specified original. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
ThroughputBenchmarkResult(
ThroughputBenchmarkResult const& original,
bslma::Allocator* basicAllocator = 0);
Create a ThroughputBenchmarkResult object with the specified numSamples the number of samples in the benchmark, and the specified threadGroupSizes, the number of threads in each of the thread groups. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless 0 < numSamples, 0 < threadGroupSizes.size(), and 0 < threadGroupSizes[N] for all valid N.
ThroughputBenchmarkResult(
int numSamples,
bsl::vector<int> const& threadGroupSizes,
bslma::Allocator* basicAllocator = 0);
Created with MrDocs