[libcxx-commits] [libcxx] [libc++] Simplify vector<bool> fill constructors (PR #160521)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 25 06:43:01 PDT 2025


================
@@ -0,0 +1,20 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <benchmark/benchmark.h>
+#include <vector>
+
+static void BM_vector_bool_size_ctor(benchmark::State& state) {
----------------
philnik777 wrote:

Yes, exactly. I wanted to use them first, but `vector<bool>` isn't a sequence container, so the benchmarks don't work properly.

https://github.com/llvm/llvm-project/pull/160521


More information about the libcxx-commits mailing list