[libcxx-commits] [libcxx] [libc++] Refactor swap_ranges dispatching (PR #173384)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 16 08:16:19 PST 2026
================
@@ -728,6 +728,157 @@ struct __specialized_algorithm<_Algorithm::__copy,
}
};
+template <class _Cl, class _Cr>
+struct __specialized_algorithm<_Algorithm::__swap_ranges,
----------------
ldionne wrote:
I would like us to add a libc++ specific test for `vector<bool>` that ensures that `__specialized_algorithm<Foo, std::vector<bool>::iterator, ...>::__has_algorithm` is true. Otherwise, at the moment I believe all of our tests would pass if we made a typo in e.g. the `__iterator_pair` specialization below, or forgot to add `__has_algorithm = true`.
https://github.com/llvm/llvm-project/pull/173384
More information about the libcxx-commits
mailing list