Function operator=

Synopsis

#include <include/internal/benchmark/catch_benchmark.hpp>

template <typename Fun, typename std::enable_if<!Detail::is_related< Fun, Benchmark >::value, int >::type = 0>
Benchmark & operator=(Fun func)

Description

No description yet.

Source

Lines 92-98 in include/internal/benchmark/catch_benchmark.hpp.

template <typename Fun,
    typename std::enable_if<!Detail::is_related<Fun, Benchmark>::value, int>::type = 0>
    Benchmark & operator=(Fun func) {
    fun = Detail::BenchmarkFunction(func);
    run();
    return *this;
}





Add Discussion as Guest

Log in