[libcxx-commits] [libcxx] [libc++] Merge the implementations of ranges::copy_n and std::copy_n and fix vector::insert to assign (PR #157444)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Oct 1 08:05:20 PDT 2025
================
@@ -473,6 +473,20 @@ using iter_value_t =
indirectly_readable_traits<remove_cvref_t<_Ip> >,
iterator_traits<remove_cvref_t<_Ip> > >::value_type;
+template <class _Iter>
+using __iter_value_t _LIBCPP_NODEBUG = iter_value_t<_Iter>;
+
+template <class _Iter>
+using __iter_difference_t _LIBCPP_NODEBUG = iter_difference_t<_Iter>;
+
+#else
+
+template <class _Iter>
+using __iter_value_t _LIBCPP_NODEBUG = __iter_value_type<_Iter>;
----------------
ldionne wrote:
The naming in this file is starting to be pretty confusing. I'd like us to rename `__iter_reference`, `__iter_diff_t` and friends to something else. Maybe `__classic_iter_diff_t` or `__iterator_traits_diff_t`?
https://github.com/llvm/llvm-project/pull/157444
More information about the libcxx-commits
mailing list