[libcxx-commits] [libcxx] [libc++][NFC] Simplify `optional::iterator` (PR #183230)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 7 00:35:20 PST 2026


================
@@ -118,7 +118,7 @@ class __wrap_iter {
   template <class _Tp, size_t _Size>
   friend struct array;
   template <class _Tp, class>
-  friend struct __optional_iterator;
+  friend struct __optional_iterator_base;
----------------
frederick-vs-ja wrote:

Maybe we can remove this specialization now.

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


More information about the libcxx-commits mailing list