Files
A. Jiang 4265ca3ecb [libc++][NFC] Remove pointer_traits<__wrap_iter> partial specialization (#178864)
Since commit b5270ba20d, it was decided
that `__wrap_iter` wasn't intended to perform runtime check, so it's
`operator->` won't check whether the iterator is deferenceable. (See
https://llvm.org/PR178521.)

Currently, `pointer_traits<__wrap_iter>` partial specialization is
provided and makes `__to_address`/`to_address` call the member
`to_address` instead of `operator->`. But given these operations are
equivalent and `__wrap_iter::operator->` is improbable to have
behavioral change in the future, perhaps it would be better to remove
the partial specialization.

The changes have no negative impact on compile time, and sometimes have
a negligible positive impact.

Drive-by: Also remove inclusion of `<__memory/addressof.h>` from
`<__iterator/wrap_iter.h>` as we don't need to call `addressof` or its
equivalent internal version.
2026-04-20 20:50:31 +08:00
..