[all-commits] [llvm/llvm-project] fc5e0c: [libc++] Simplify most of the segmented iterator o...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Nov 6 23:28:16 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc5e0c071bfba9c8cc86ecff926b84a999970613
https://github.com/llvm/llvm-project/commit/fc5e0c071bfba9c8cc86ecff926b84a999970613
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2025-11-07 (Fri, 07 Nov 2025)
Changed paths:
M libcxx/include/__algorithm/fill.h
M libcxx/include/__algorithm/fill_n.h
M libcxx/include/__algorithm/for_each.h
M libcxx/include/__algorithm/for_each_n.h
M libcxx/include/__iterator/distance.h
M libcxx/include/__iterator/segmented_iterator.h
Log Message:
-----------
[libc++] Simplify most of the segmented iterator optimizations (#164797)
This patch does two things.
(1) It replaces SFINAE with `if constexpr`, avoiding some overload
resolution and unnecessary boilerplate.
(2) It removes an overload from `__for_each_n` to forward to
`__for_each`, since `__for_each` doesn't provide any further
optimizations.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list