More...
#include <future.h>
Inherits dispenso::detail::FutureBase< Result & >.
|
| | Future () noexcept |
| |
| | Future (Future &&f) noexcept |
| |
| | Future (Base &&f) noexcept |
| |
| | Future (const Future &f) noexcept |
| |
| | Future (const Base &f) noexcept |
| |
| template<typename F , typename Schedulable > |
| | Future (F &&f, Schedulable &schedulable, std::launch asyncPolicy=kNotAsync, std::launch deferredPolicy=std::launch::deferred) |
| |
| Result & | get () const |
| |
template<typename Result>
class dispenso::Future< Result & >
Definition at line 274 of file future.h.
◆ Future() [1/6]
template<typename Result >
Default constructor.
Definition at line 279 of file future.h.
◆ Future() [2/6]
template<typename Result >
Move constructor.
Definition at line 281 of file future.h.
◆ Future() [3/6]
template<typename Result >
Move constructor.
Definition at line 283 of file future.h.
◆ Future() [4/6]
template<typename Result >
Copy constructor.
Definition at line 285 of file future.h.
◆ Future() [5/6]
template<typename Result >
Copy constructor.
Definition at line 287 of file future.h.
◆ Future() [6/6]
template<typename Result >
template<typename F , typename Schedulable >
| dispenso::Future< Result & >::Future |
( |
F && | f, |
|
|
Schedulable & | schedulable, |
|
|
std::launch | asyncPolicy = kNotAsync, |
|
|
std::launch | deferredPolicy = std::launch::deferred ) |
|
inline |
◆ get()
template<typename Result >
Get the result of the future functor. This function blocks until the result is ready.
- Returns
- Access to the underlying reference.
Definition at line 321 of file future.h.
◆ Future
template<typename Result >
template<typename R >
◆ make_ready_future
template<typename Result >
template<typename X >
| Future< X & > make_ready_future |
( |
std::reference_wrapper< X > | x | ) |
|
|
friend |
Make a Future in a ready state with the reference_wrapper passed into make_ready_future
- Parameters
-
| x | the wrapped reference to use to create the returned future. |
Definition at line 611 of file future.h.
The documentation for this class was generated from the following file: