[libc++] Use algorithm policies in segmented iterator optimizations
Open
libc++
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
I think we should be using the `AlgPolicy` here to extract the difference type. That looks like a bug to me. That actually seems to be the case for all of the segmented iterator optimizations.
_Originally posted by @ldionne in https://github.com/llvm/llvm-project/pull/161661#discussion_r2406902860_
Contributor guide
Assessment
This issue has not been assessed yet.