MEL
Microthread & Execution library
mel::core::FutureValue< T > Class Template Reference

Wrapper for value holded by a Future. More...

#include <Future.h>

Inheritance diagram for mel::core::FutureValue< T >:

Public Types

typedef T Type
 
typedef _private::return_type< T >::type ReturnType
 
typedef _private::creturn_type< T >::type CReturnType
 

Public Member Functions

 FutureValue (const T &v)
 
 FutureValue (T &&v)
 
 FutureValue (std::exception_ptr err)
 
 FutureValue (const FutureValue &v)
 
 FutureValue (FutureValue &&v)
 
bool isValid () const
 get if has valid value
 
bool isAvailable () const
 
ReturnType value ()
 
CReturnType value () const
 
std::exception_ptr error () const
 
auto & operator= (const T &v)
 
auto & operator= (T &&v)
 
auto & operator= (std::exception_ptr v)
 
auto & operator= (const FutureValue &v)
 
auto & operator= (FutureValue &v)
 
auto & operator= (FutureValue &&v)
 

Detailed Description

template<class T>
class mel::core::FutureValue< T >

Wrapper for value holded by a Future.


The documentation for this class was generated from the following file: