[libcxx-commits] [libcxx] [libc++] Guard container benchmarks on library availability (PR #215408)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 04:12:36 PDT 2026
================
@@ -398,26 +399,26 @@ void sequence_container_benchmarks(std::string container) {
}
});
-#if TEST_STD_VER >= 23
- for (auto gen : generators)
- bench("append_range() (into empty container)" + tostr(gen), [gen](auto& state) {
- auto const size = state.range(0);
- std::vector<ValueType> in;
- std::generate_n(std::back_inserter(in), size, gen);
- DoNotOptimizeData(in);
+ if constexpr (has_append_range) {
----------------
philnik777 wrote:
I think I'd rather guard consistently. We didn't modify (at least `vector::append_range`) at all in that time, so I don't think there is much value.
https://github.com/llvm/llvm-project/pull/215408
More information about the libcxx-commits
mailing list