|
dune-common 2.10
|
Type-erasure for future-like objects. A future-like object is a object satisfying the interface of FutureBase. More...
#include <dune/common/parallel/future.hh>
Public Member Functions | |
| template<class F> | |
| Future (F &&f) | |
| template<class U, std::enable_if_t< std::is_same< U, T >::value &&!std::is_same< T, void >::value >> | |
| Future (U &&data) | |
| Future ()=default | |
| void | wait () |
| wait until the future is ready | |
| T | get () |
| Waits until the future is ready and returns the resulting value. | |
| bool | ready () const |
Type-erasure for future-like objects. A future-like object is a object satisfying the interface of FutureBase.
|
inline |
|
default |
|
inline |
Waits until the future is ready and returns the resulting value.
| InvalidFutureException |
|
inline |
| InvalidFutureException |
|
inline |
wait until the future is ready
| InvalidFutureException |