Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::make_ready_future

      From cppreference.com
      <cpp‎ |experimental
       
       
       
       
      Defined in header<experimental/future>
      template<class T>
      future<V/* see below */> make_ready_future( T&& value);
      (1)(concurrency TS)
      future<void> make_ready_future();
      (2)(concurrency TS)
      1) Ifstd::decay_t<T> isstd::reference_wrapper<X>, then the typeV isX&, otherwise,V isstd::decay_t<T>.
      Creates a shared state of typeV that is immediately ready, with the result constructed fromstd::forward<T>(value), then returns astd::experimental::future associated with that shared state.
      2) Creates a shared state of typevoid that is immediately ready, then returns astd::experimental::future associated with that shared state.

      [edit]Return value

      Astd::experimental::future associated with the shared state that is created.

      [edit]See also

      (concurrency TS)
      produces a future that is ready immediately and holds the given exception
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/make_ready_future&oldid=154990"

      [8]ページ先頭

      ©2009-2025 Movatter.jp