[libcxx-commits] [libcxx] [libc++] Make the naming of the iterator_traits aliases consistent (PR #161661)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 6 07:52:08 PDT 2025


================
@@ -420,44 +420,43 @@ using __has_exactly_bidirectional_iterator_category _LIBCPP_NODEBUG =
                           !__has_iterator_category_convertible_to<_Tp, random_access_iterator_tag>::value>;
 
 template <class _InputIterator>
-using __iter_value_type _LIBCPP_NODEBUG = typename iterator_traits<_InputIterator>::value_type;
+using __iterator_value_type _LIBCPP_NODEBUG = typename iterator_traits<_InputIterator>::value_type;
----------------
ldionne wrote:

I think this naming is an improvement. I'd rather have something that mentions `traits` in the name but I can live with it, at least until we revisit this later because it's still confusing :-)

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


More information about the libcxx-commits mailing list