[libcxx-commits] [libcxx] [libc++] Implement a type-safe iterator for optional (PR #154239)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 5 08:57:54 PST 2025
================
@@ -0,0 +1,98 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++26
+
+// <optional>
+
+// template <class T> class optional::iterator;
----------------
ldionne wrote:
This synopsis should say what it is testing. It's testing specifically the comparison operators for the iterator, so let's add the declaration for `operator<=>` in this test's synopsis.
https://github.com/llvm/llvm-project/pull/154239
More information about the libcxx-commits
mailing list