[libcxx-commits] [libcxx] [libc++] Optimize ranges::for_each for iterating over __trees (PR #164405)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 1 08:23:06 PST 2025
================
@@ -944,6 +948,21 @@ template <class _Key, class _Allocator, class = enable_if_t<__is_allocator_v<_Al
set(initializer_list<_Key>, _Allocator) -> set<_Key, less<_Key>, _Allocator>;
# endif
+# if _LIBCPP_STD_VER >= 14
+template <class _Alg, class _Key, class _Compare, class _Allocator>
+struct __specialized_algorithm<_Alg, set<_Key, _Compare, _Allocator>> {
----------------
ldionne wrote:
I have a bad feeling about forwarding to tree generically for any algorithm. Seems like something that could bite us in the future if we're not careful. But since I can't articulate a concrete concern, not requesting any change.
https://github.com/llvm/llvm-project/pull/164405
More information about the libcxx-commits
mailing list