diff options
Diffstat (limited to 'contrib/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp')
| -rw-r--r-- | contrib/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp b/contrib/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp new file mode 100644 index 0000000..66d4e61 --- /dev/null +++ b/contrib/catch2/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 |
