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

Public Member Functions

 shared_future () _NOEXCEPT
 
 shared_future (const shared_future &_Other)
 
shared_futureoperator= (const shared_future &_Right)
 
 shared_future (shared_future &&_Other) _NOEXCEPT
 
 shared_future (future< void > &&_Other) _NOEXCEPT
 
shared_futureoperator= (shared_future &&_Right)
 
 ~shared_future () _NOEXCEPT
 
void get () const
 
- 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 _Abandon ()
 
void _Set_exception (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
 
bool _Is_ready_at_thread_exit () const
 

Private Types

typedef _State_manager< int_Mybase
 

Member Typedef Documentation

Constructor & Destructor Documentation

1346  { // construct
1347  }
shared_future< void >::shared_future ( const shared_future< void > &  _Other)
inline
1350  : _Mybase(_Other)
1351  { // construct from shared_future object
1352  }
_State_manager< int > _Mybase
Definition: future:1342
shared_future< void >::shared_future ( shared_future< void > &&  _Other)
inline
1361  : _Mybase(_STD forward<shared_future>(_Other))
1362  { // construct from rvalue shared_future object
1363  }
_State_manager< int > _Mybase
Definition: future:1342
shared_future< void >::shared_future ( future< void > &&  _Other)
inline
1366  : _Mybase(_STD forward<_Mybase>(_Other))
1367  { // construct from rvalue future object
1368  }
_State_manager< int > _Mybase
Definition: future:1342
shared_future< void >::~shared_future ( )
inline
1377  { // destroy
1378  }

Member Function Documentation

void shared_future< void >::get ( ) const
inline
1381  { // block until ready then return or
1382  // throw the stored exception
1383  this->_Get_value();
1384  }
int & _Get_value() const
Definition: future:1005
shared_future& shared_future< void >::operator= ( const shared_future< void > &  _Right)
inline
1355  { // assign from shared_future object
1356  _Mybase::operator=(_Right);
1357  return (*this);
1358  }
_State_manager & operator=(const _State_manager &_Other)
Definition: future:960
shared_future& shared_future< void >::operator= ( shared_future< void > &&  _Right)
inline
1371  { // assign from rvalue shared_future object
1372  _Mybase::operator=(_STD forward<shared_future>(_Right));
1373  return (*this);
1374  }
_State_manager & operator=(const _State_manager &_Other)
Definition: future:960

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