Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::execution::when_all

      From cppreference.com
      <cpp‎ |execution
       
       
      Execution control library
       
      Defined in header<execution>
      execution::senderauto when_all( execution::senderauto...inputs);
      (since C++26)

      Contents

      [edit]Parameters

      inputs - senders upon which the completion ofwhen_all is blocked. Can only include senders that can complete with a single set of values.

      [edit]Return value

      Returns a sender that completes once all of the input senders have completed. The values sent by this sender are the values sent by each of the input senders, in order of the arguments passed towhen_all.

      [edit]Notes

      • The sender returned bywhen_all completes inline on the execution resource on which the last input sender completes, unlessstop is requested beforewhen_all is started, in which case it completes inline within the call to start.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (concurrency TS)
      produces a future that becomes ready when all given futures orshared_futures are ready
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/execution/when_all&oldid=176771"

      [8]ページ先頭

      ©2009-2025 Movatter.jp