[libcxx-commits] [libcxx] [libc++] Merge the private iterator_traits aliases with their ranges versions (PR #162661)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 15 08:44:01 PDT 2025


================
@@ -46,6 +46,9 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
+template <class _Iter>
+using __iter_reference_t _LIBCPP_NODEBUG = decltype(*std::declval<_Iter&>());
----------------
ldionne wrote:

I would do consistently with the other typedefs and use `iterator_traits<>::reference` instead.

https://github.com/llvm/llvm-project/pull/162661


More information about the libcxx-commits mailing list