libqi-api
2.8.7.4
|
#include <future_fwd.hpp>
Public Types | |
using | retract_type = UnitFuture |
Public Member Functions | |
template<typename T > | |
auto | operator() (const Future< T > &x) const QI_NOEXCEPT_EXPR(*x) -> decltype(*x) |
Friends | |
UnitFuture | retract (SrcFuture) |
Polymorphic function that gets (sources) the value of a Future
.
This function has an inverse: UnitFuture
(i.e. composing with it in any order will produce a function doing nothing).
See the concept Isomorphism
in concept.hpp
for a more formal explanation.
Definition at line 1153 of file future_fwd.hpp.
Definition at line 1169 of file future_fwd.hpp.
|
inline |
Note: The return type will be void*
if T
is void
... There is no constraint on T.
Definition at line 1162 of file future_fwd.hpp.
|
friend |
Returns the retraction function, i.e. a function that undoes SrcFuture
. As we model here the concept Isomorphism
, it is also true that SrcFuture
undoes UnitFuture
.
See the Isomorphism
concept definition for more information.
Definition at line 1176 of file future_fwd.hpp.