Function operator BenchmarkStats< Duration2 >

Synopsis

#include <include/internal/catch_interfaces_reporter.h>

template <typename Duration2>
operator BenchmarkStats< Duration2 >() const

Description

No description yet.

Source

Lines 189-202 in include/internal/catch_interfaces_reporter.h.

template <typename Duration2>
operator BenchmarkStats<Duration2>() const {
    std::vector<Duration2> samples2;
    samples2.reserve(samples.size());
    std::transform(samples.begin(), samples.end(), std::back_inserter(samples2), [](Duration d) { return Duration2(d); });
    return {
        info,
        std::move(samples2),
        mean,
        standardDeviation,
        outliers,
        outlierVariance,
    };
}





Add Discussion as Guest

Log in