[libcxx-commits] [libcxx] [libc++] Optimize ranges::copy{, _n} for vector<bool>::iterator (PR #121013)
Peng Liu via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 30 06:20:10 PST 2025
================
@@ -78,13 +99,21 @@ TEST_CONSTEXPR_CXX20 bool test() {
assert(std::equal(a, a + 10, expected));
}
+ { // Test vector<bool>::iterator optimization
+ assert(test_vector_bool(8));
----------------
winner245 wrote:
I've added more tests cases for odd-sized vector. Same as below.
https://github.com/llvm/llvm-project/pull/121013
More information about the libcxx-commits
mailing list