STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Types | List of all members
future< void > Class Template Reference
Inheritance diagram for future< void >:
_State_manager< int >

Public Member Functions

 future () _NOEXCEPT
 
 future (future &&_Other) _NOEXCEPT
 
futureoperator= (future &&_Right) _NOEXCEPT
 
 future (const _Mybase &_State, _Nil)
 
 ~future () _NOEXCEPT
 
void get ()
 
shared_future< voidshare ()
 
 future (const future &)=delete
 
futureoperator= (const future &)=delete
 
- Public Member Functions inherited from _State_manager< int >
 _State_manager ()
 
 _State_manager (_Associated_state< int > *_New_state, bool _Get_once)
 
 _State_manager (const _State_manager &_Other, bool _Get_once=false)
 
 _State_manager (_State_manager &&_Other, bool _Get_once=false)
 
 ~_State_manager () _NOEXCEPT
 
_State_manageroperator= (const _State_manager &_Other)
 
_State_manageroperator= (_State_manager &&_Other)
 
bool valid () const _NOEXCEPT
 
void wait () const
 
_Future_status wait_for (const chrono::duration< _Rep, _Per > &_Rel_time) const
 
_Future_status wait_until (const chrono::time_point< _Clock, _Dur > &_Abs_time) const
 
int_Get_value () const
 
void _Set_value (const int &_Val, bool _Defer)
 
void _Set_value (int &&_Val, bool _Defer)
 
void _Set_exception (_XSTD exception_ptr _Exc, bool _Defer)
 
void _Swap (_State_manager &_Other)
 
_Associated_state< int > * _Ptr () const
 
void _Copy_from (const _State_manager &_Other)
 
void _Move_from (_State_manager &_Other)
 
bool _Is_ready () const
 

Private Types

typedef _State_manager< int_Mybase
 

Member Typedef Documentation

typedef _State_manager<int> future< void >::_Mybase
private

Constructor & Destructor Documentation

future< void >::future ( )
inline
1198  { // construct
1199  }
future< void >::future ( future< void > &&  _Other)
inline
1202  : _Mybase(_STD forward<future>(_Other), true)
1203  { // construct from rvalue future object
1204  }
_State_manager< int > _Mybase
Definition: future:1195
future< void >::future ( const _Mybase _State,
_Nil   
)
inline
1213  : _Mybase(_State, true)
1214  { // construct from associated asynchronous state object
1215  }
_State_manager< int > _Mybase
Definition: future:1195
future< void >::~future ( )
inline
1218  { // destroy
1219  }
future< void >::future ( const future< void > &  )
delete

Member Function Documentation

void future< void >::get ( )
inline
1222  { // block until ready then return or
1223  // throw the stored exception
1224  this->_Get_value();
1225  }
int & _Get_value() const
Definition: future:1013
future& future< void >::operator= ( future< void > &&  _Right)
inline
1207  { // assign from rvalue future object
1208  _Mybase::operator=(_STD forward<future>(_Right));
1209  return (*this);
1210  }
_State_manager & operator=(const _State_manager &_Other)
Definition: future:968
future& future< void >::operator= ( const future< void > &  )
delete
shared_future< void > future< void >::share ( )
inline
1386  { // return state as shared_future
1387  return (shared_future<void>(_STD move(*this)));
1388  }
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447
Definition: future:1335

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