SimGrid  3.14.159
Versatile Simulation of Distributed Systems
simgrid::xbt::Result< T & > Class Template Reference

#include <future.hpp>

Inheritance diagram for simgrid::xbt::Result< T & >:
simgrid::xbt::Result< std::reference_wrapper< T > >

Public Member Functions

void set_value (T &value)
 
T & get ()
 
- Public Member Functions inherited from simgrid::xbt::Result< std::reference_wrapper< T > >
 Result ()
 
 Result (Result const &that)
 
 Result (Result &&that)
 
 ~Result ()
 
Resultoperator= (Result const &that)
 
Resultoperator= (Result &&that)
 
bool is_valid () const
 
void reset ()
 
void set_exception (std::exception_ptr e)
 
void set_value (std::reference_wrapper< T > &&value)
 
void set_value (std::reference_wrapper< T > const &value)
 
std::reference_wrapper< T > get ()
 Extract the value from the future. More...
 

Additional Inherited Members

- Public Attributes inherited from simgrid::xbt::Result< std::reference_wrapper< T > >
std::reference_wrapper< T > value_
 
std::exception_ptr exception_
 

Member Function Documentation

§ set_value()

template<class T >
void simgrid::xbt::Result< T & >::set_value ( T &  value)
inline

§ get()

template<class T >
T& simgrid::xbt::Result< T & >::get ( )
inline

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