[libcxx-commits] [libcxx] [libc++] Optimize ranges::copy{, _n} for vector<bool>::iterator (PR #121013)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 20 09:30:11 PST 2025


================
@@ -59,6 +60,29 @@ struct TestInIters {
   }
 };
 
+template <std::size_t N>
+struct TestBitIter {
----------------
ldionne wrote:

Let's write this as a simple function. The reason why `TestInIters` was written as a struct is just that we had to pass it to another function and lambdas are not available in some language modes, but this is clearer written as a function.

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


More information about the libcxx-commits mailing list