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

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 17 05:47:46 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;
----------------
frederick-vs-ja wrote:

I doubt whether we should touch frozen C++03 headers, given that we didn't remove `__wrap_iter::base` from the legacy header. CC @philnik777

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


More information about the libcxx-commits mailing list