[libcxx-commits] [libcxx] [libc++] Simplify vector<bool> fill constructors (PR #160521)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 25 06:29:13 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) {
----------------
ldionne wrote:
I assume it doesn't work to use the generic sequence benchmarks since `vector<bool>` is "special"?
https://github.com/llvm/llvm-project/pull/160521
More information about the libcxx-commits
mailing list