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

Public Member Functions

 future () _NOEXCEPT
 
 future (future &&_Other) _NOEXCEPT
 
futureoperator= (future &&_Right) _NOEXCEPT
 
 future (const _Mybase &_State, _Nil)
 
 ~future () _NOEXCEPT
 
_Ty get ()
 
shared_future< _Ty > share ()
 
 future (const future &)=delete
 
futureoperator= (const future &)=delete
 
- Public Member Functions inherited from _State_manager< _Ty >
 _State_manager ()
 
 _State_manager (_Associated_state< _Ty > *_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
 
template<class _Rep , class _Per >
_Future_status wait_for (const chrono::duration< _Rep, _Per > &_Rel_time) const
 
template<class _Clock , class _Dur >
_Future_status wait_until (const chrono::time_point< _Clock, _Dur > &_Abs_time) const
 
_Ty & _Get_value () const
 
void _Set_value (const _Ty &_Val, bool _Defer)
 
void _Set_value (_Ty &&_Val, bool _Defer)
 
void _Abandon ()
 
void _Set_exception (exception_ptr _Exc, bool _Defer)
 
void _Swap (_State_manager &_Other)
 
_Associated_state< _Ty > * _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< _Ty > _Mybase
 

Member Typedef Documentation

template<class _Ty >
typedef _State_manager<_Ty> future< _Ty >::_Mybase
private

Constructor & Destructor Documentation

template<class _Ty >
future< _Ty >::future ( )
inline
1109  { // construct
1110  }
template<class _Ty >
future< _Ty >::future ( future< _Ty > &&  _Other)
inline
1113  : _Mybase(_STD forward<future>(_Other), true)
1114  { // construct from rvalue future object
1115  }
_State_manager< _Ty > _Mybase
Definition: future:1106
template<class _Ty >
future< _Ty >::future ( const _Mybase _State,
_Nil   
)
inline
1124  : _Mybase(_State, true)
1125  { // construct from associated asynchronous state object
1126  }
_State_manager< _Ty > _Mybase
Definition: future:1106
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
template<class _Ty >
future< _Ty >::~future ( )
inline
1129  { // destroy
1130  }
template<class _Ty >
future< _Ty >::future ( const future< _Ty > &  )
delete

Member Function Documentation

template<class _Ty >
_Ty future< _Ty >::get ( )
inline
1133  { // block until ready then return the stored result or
1134  // throw the stored exception
1135  return (_STD move(this->_Get_value()));
1136  }
_Ty & _Get_value() const
Definition: future:1005
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1349
template<class _Ty >
future& future< _Ty >::operator= ( future< _Ty > &&  _Right)
inline
1118  { // assign from rvalue future object
1119  _Mybase::operator=(_STD forward<future>(_Right));
1120  return (*this);
1121  }
_State_manager & operator=(const _State_manager &_Other)
Definition: future:960
template<class _Ty >
future& future< _Ty >::operator= ( const future< _Ty > &  )
delete
template<class _Ty >
shared_future<_Ty> future< _Ty >::share ( )
inline
1139  { // return state as shared_future
1140  return (shared_future<_Ty>(_STD move(*this)));
1141  }
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1349
Definition: future:1099

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