STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
promise< void > Class Template Reference

Public Member Functions

 promise ()
 
template<class _Alloc >
 promise (allocator_arg_t, const _Alloc &_Al)
 
 promise (promise &&_Other) _NOEXCEPT
 
promiseoperator= (promise &&_Other) _NOEXCEPT
 
 ~promise () _NOEXCEPT
 
void swap (promise &_Other) _NOEXCEPT
 
future< voidget_future ()
 
void set_value ()
 
void set_value_at_thread_exit ()
 
void set_exception (_XSTD exception_ptr _Exc)
 
void set_exception_at_thread_exit (_XSTD exception_ptr _Exc)
 
 promise (const promise &)=delete
 
promiseoperator= (const promise &)=delete
 

Private Attributes

_Promise< int_MyPromise
 

Constructor & Destructor Documentation

promise< void >::promise ( )
inline
1634  { // construct
1635  }
_Promise< int > _MyPromise
Definition: future:1693
template<class _Alloc >
promise< void >::promise ( allocator_arg_t  ,
const _Alloc &  _Al 
)
inline
1639  : _MyPromise(_Make_associated_state<int>(_Al))
1640  { // construct with allocator
1641  }
_Promise< int > _MyPromise
Definition: future:1693
promise< void >::promise ( promise< void > &&  _Other)
inline
1644  : _MyPromise(_STD forward<_Promise<int> >(_Other._MyPromise))
1645  { // construct from rvalue promise object
1646  }
_Promise< _Ty > _MyPromise
Definition: future:1553
_Promise< int > _MyPromise
Definition: future:1693
promise< void >::~promise ( )
inline
1655  { // destroy
1656  }
promise< void >::promise ( const promise< void > &  )
delete

Member Function Documentation

future<void> promise< void >::get_future ( )
inline
1664  { // return a future object that shares the associated
1665  // asynchronous state
1667  }
static _Nil _Nil_obj
Definition: xtr1common:29
_Promise< int > _MyPromise
Definition: future:1693
Definition: future:1191
_State_manager< _Ty > & _Get_state_for_future()
Definition: future:1442
promise& promise< void >::operator= ( promise< void > &&  _Other)
inline
1649  { // assign from rvalue promise object
1650  _MyPromise = _STD forward<_Promise<int> >(_Other._MyPromise);
1651  return (*this);
1652  }
_Promise< _Ty > _MyPromise
Definition: future:1553
_Promise< int > _MyPromise
Definition: future:1693
promise& promise< void >::operator= ( const promise< void > &  )
delete
void promise< void >::set_exception ( _XSTD exception_ptr  _Exc)
inline
1680  { // store a result
1682  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1433
void _Set_exception(_XSTD exception_ptr _Exc, bool _Defer)
Definition: future:1037
_Promise< int > _MyPromise
Definition: future:1693
void promise< void >::set_exception_at_thread_exit ( _XSTD exception_ptr  _Exc)
inline
1685  { // store result and block until thread exit
1687  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1433
void _Set_exception(_XSTD exception_ptr _Exc, bool _Defer)
Definition: future:1037
_Promise< int > _MyPromise
Definition: future:1693
void promise< void >::set_value ( )
inline
1670  { // store a (void) result
1672  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1433
void _Set_value(const _Ty &_Val, bool _Defer)
Definition: future:1021
_Promise< int > _MyPromise
Definition: future:1693
void promise< void >::set_value_at_thread_exit ( )
inline
1675  { // store result and block until thread exit
1677  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1433
void _Set_value(const _Ty &_Val, bool _Defer)
Definition: future:1021
_Promise< int > _MyPromise
Definition: future:1693
void promise< void >::swap ( promise< void > &  _Other)
inline
1659  { // exchange with _Other
1660  _MyPromise._Swap(_Other._MyPromise);
1661  }
void _Swap(_Promise &_Other)
Definition: future:1418
_Promise< _Ty > _MyPromise
Definition: future:1553
_Promise< int > _MyPromise
Definition: future:1693

Member Data Documentation

_Promise<int> promise< void >::_MyPromise
private

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