[libcxx-commits] [libcxx] [libc++] Implement a type-safe iterator for optional (PR #154239)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 14 14:07:26 PST 2026
================
@@ -711,13 +711,16 @@ private:
using __pointer _LIBCPP_NODEBUG = add_pointer_t<_Tp>;
using __const_pointer _LIBCPP_NODEBUG = add_pointer_t<const _Tp>;
+ template <typename _Underlying>
+ using __iter _LIBCPP_NODEBUG = __capacity_aware_iterator<_Underlying, optional<_Tp>, 1>;
+
----------------
ldionne wrote:
I would get rid of this alias and just inline it below.
https://github.com/llvm/llvm-project/pull/154239
More information about the libcxx-commits
mailing list