From ff374afd0dd304d860edf9bf451d3f7e4253e1fc Mon Sep 17 00:00:00 2001 From: steven varga Date: Wed, 17 Jun 2026 20:09:03 +0000 Subject: [PATCH 1/3] [#16]:svarga:refactor, replace bench::types marker with explicit std::tuple type axis --- include/bench/bench.hpp | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/include/bench/bench.hpp b/include/bench/bench.hpp index e342c0e..a67f48a 100644 --- a/include/bench/bench.hpp +++ b/include/bench/bench.hpp @@ -119,16 +119,22 @@ namespace bench::impl { }) / static_cast(data.size()); return std::pair{mean, std::sqrt(var)}; } + + // Detects whether `T` is a specialization of the class template `Tmpl`. + // Used to constrain the type-axis throughput overload to `std::tuple<...>`. + template class Tmpl> + struct is_specialization_of : std::false_type {}; + template