[libcxx-commits] [libcxx] [libc++] Make optional::iterator experimental (PR #173470)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 24 01:47:51 PST 2025


================
@@ -681,6 +681,8 @@ struct __is_std_optional<optional<_Tp>> : true_type {};
 template <class _Tp, class = void>
 struct __optional_iterator {};
 
+#    if _LIBCPP_HAS_EXPERIMENTAL_OPTIONAL_ITERATOR
----------------
frederick-vs-ja wrote:

We should also guard the FTM (`__cpp_lib_optional_range_support`).

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


More information about the libcxx-commits mailing list