MCPcopy Create free account
hub / github.com/catchorg/Catch2 / BenchmarkFunction

Method BenchmarkFunction

extras/catch_amalgamated.hpp:1703–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1701 template <typename Fun,
1702 std::enable_if_t<!is_related_v<Fun, BenchmarkFunction>, int> = 0>
1703 BenchmarkFunction(Fun&& fun)
1704 : f(new model<std::decay_t<Fun>>(CATCH_FORWARD(fun))) {}
1705
1706 BenchmarkFunction( BenchmarkFunction&& that ) noexcept:
1707 f( CATCH_MOVE( that.f ) ) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected