[libcxx-commits] [libcxx] [libc++] Remove `wrap_iter::base()` (PR #179389)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 3 02:42:06 PST 2026


================
@@ -100,9 +102,39 @@ class __wrap_iter {
     return __i_[__n];
   }
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 iterator_type base() const _NOEXCEPT { return __i_; }
-
 private:
+  template <class _Iter1>
+  _LIBCPP_HIDE_FROM_ABI friend _LIBCPP_CONSTEXPR bool
+  operator==(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter1>& __y) _NOEXCEPT;
----------------
philnik777 wrote:

I think this is a good idea. Can we split this patch up to (1) make the friends hidden, and (2) remove `base()`? That should keep the diff simple.

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


More information about the libcxx-commits mailing list