[libcxx-commits] [libcxx] [libc++] Remove non-standard member type iterator_type from __wrap_iter (PR #186871)

Nikhil Kotikalapudi via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 17 07:07:18 PDT 2026


================
@@ -27,19 +27,18 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 template <class _Iter>
 class __wrap_iter {
 public:
-  typedef _Iter iterator_type;
-  typedef typename iterator_traits<iterator_type>::value_type value_type;
-  typedef typename iterator_traits<iterator_type>::difference_type difference_type;
-  typedef typename iterator_traits<iterator_type>::pointer pointer;
-  typedef typename iterator_traits<iterator_type>::reference reference;
-  typedef typename iterator_traits<iterator_type>::iterator_category iterator_category;
+  typedef typename iterator_traits<_Iter>::value_type value_type;
----------------
23silicon wrote:

Fair point, I can reverse the changes to the legacy headers if needed. I assumed I'd need to update both. 

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


More information about the libcxx-commits mailing list