[libcxx-commits] [libcxx] [libc++][execution] Implement C++26 std::execution set_value, set_error and set_stopped (PR #229095)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 5 23:06:18 PDT 2026


================
@@ -21,6 +21,15 @@ namespace std::execution {
   inline constexpr parallel_policy par = implementation-defined;
   inline constexpr parallel_unsequenced_policy par_unseq = implementation-defined;
   inline constexpr unsequenced_policy unseq = implementation-defined; // since C++20
+
+  // completion functions, since C++26
+  struct set_value_t;
+  struct set_error_t;
+  struct set_stopped_t;
+
+  inline constexpr set_value_t set_value{};
+  inline constexpr set_error_t set_error{};
+  inline constexpr set_stopped_t set_stopped{};
----------------
emmett2020 wrote:

It's more reasonable. Has fixed this.

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


More information about the libcxx-commits mailing list