Function operator=

Summary

#include <include/internal/benchmark/detail/catch_benchmark_function.hpp>

(1) BenchmarkFunction & operator=(BenchmarkFunction &&that)

(2) BenchmarkFunction & operator=(BenchmarkFunction const &that)

Function overload

Synopsis

#include <include/internal/benchmark/detail/catch_benchmark_function.hpp>

BenchmarkFunction & operator=(BenchmarkFunction &&that)

Description

No description yet.

Source

Lines 86-89 in include/internal/benchmark/detail/catch_benchmark_function.hpp.

BenchmarkFunction& operator=(BenchmarkFunction&& that) {
    f = std::move(that.f);
    return *this;
}

Synopsis

#include <include/internal/benchmark/detail/catch_benchmark_function.hpp>

BenchmarkFunction & operator=(BenchmarkFunction const &that)

Description

No description yet.

Source

Lines 91-94 in include/internal/benchmark/detail/catch_benchmark_function.hpp.

BenchmarkFunction& operator=(BenchmarkFunction const& that) {
    f.reset(that.f->clone());
    return *this;
}





Add Discussion as Guest

Log in