aboutsummaryrefslogtreecommitdiffstats
path: root/src/catch2/benchmark/detail/catch_benchmark_function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/catch2/benchmark/detail/catch_benchmark_function.cpp')
-rw-r--r--src/catch2/benchmark/detail/catch_benchmark_function.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/catch2/benchmark/detail/catch_benchmark_function.cpp b/src/catch2/benchmark/detail/catch_benchmark_function.cpp
new file mode 100644
index 0000000..66d4e61
--- /dev/null
+++ b/src/catch2/benchmark/detail/catch_benchmark_function.cpp
@@ -0,0 +1,23 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
+#include <catch2/benchmark/detail/catch_benchmark_function.hpp>
+
+namespace Catch {
+ namespace Benchmark {
+ namespace Detail {
+ struct do_nothing {
+ void operator()() const {}
+ };
+
+ BenchmarkFunction::callable::~callable() = default;
+ BenchmarkFunction::BenchmarkFunction():
+ f( new model<do_nothing>{ {} } ){}
+ } // namespace Detail
+ } // namespace Benchmark
+} // namespace Catch