Struct repeater

Synopsis

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

template <typename Fun>
struct repeater

Description

No description yet.

Methods

operator()

Source

Lines 20-28 in include/internal/benchmark/detail/catch_repeat.hpp.

template <typename Fun>
struct repeater {
    void operator()(int k) const {
        for (int i = 0; i < k; ++i) {
            fun();
        }
    }
    Fun fun;
};





Add Discussion as Guest

Log in