Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::execution::just_error

      From cppreference.com
      <cpp‎ |execution
       
       
      Execution control library
       
      Defined in header<execution>
      inlineconstexpr just_error_t just_error{};
      struct just_error_t{/*unspecified*/};
      (since C++26)
      (customization point object)
      Call signature
      execution::senderauto just_error(auto&& error);
      (since C++26)

      A sender factory that returns a sender which completes immediately by calling the receiver’sset_error().

      Lete be a subexpression represented by an input error which will be injected and returned by the receiver. The expressionjust_error(e) isexpression-equivalent to/*make-sender*/(just_error,/*product-type*/(e))

      Customization point objects

      The nameexecution::just_error denotes acustomization point object, which is a constfunction object of aliteralsemiregular class type. The cv-unqualified version of its type is a tag type denoted asexecution::just_error_t. SeeCustomizationPointObject for details.

      [edit]Notes

      If the provided error is an lvalue reference, a copy is made inside the returned sender and a non-const lvalue reference to the copy is sent to the receiver’sset_error. If the provided value is an rvalue reference, it is moved into the returned sender and an rvalue reference to it is sent to the receiver’sset_error.

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/execution/just_error&oldid=176807"

      [8]ページ先頭

      ©2009-2025 Movatter.jp