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 (exception_ptr _Exc)
 
void set_exception_at_thread_exit (exception_ptr _Exc)
 
 promise (const promise &)=delete
 
promiseoperator= (const promise &)=delete
 

Private Attributes

_Promise< int_MyPromise
 

Constructor & Destructor Documentation

promise< void >::promise ( )
inline
1648  { // construct
1649  }
_Promise< int > _MyPromise
Definition: future:1713
template<class _Alloc >
promise< void >::promise ( allocator_arg_t  ,
const _Alloc &  _Al 
)
inline
1653  : _MyPromise(_Make_associated_state<int>(_Al))
1654  { // construct with allocator
1655  }
_Promise< int > _MyPromise
Definition: future:1713
promise< void >::promise ( promise< void > &&  _Other)
inline
1659  { // construct from rvalue promise object
1660  }
_Promise< _Ty > _MyPromise
Definition: future:1565
constexpr _Ty && forward(typename remove_reference< _Ty >::type &_Arg) _NOEXCEPT
Definition: type_traits:1332
_Promise< int > _MyPromise
Definition: future:1713
promise< void >::~promise ( )
inline
1669  { // destroy
1671  { // exception if destroyed before function object returns
1674  ._Set_exception(_STD make_exception_ptr(_Fut), false);
1675  }
1676  }
bool _Is_valid() const _NOEXCEPT
Definition: future:1458
error_code make_error_code(_Future_errc _Errno) _NOEXCEPT
Definition: future:119
void _Set_exception(exception_ptr _Exc, bool _Defer)
Definition: future:1035
bool _Is_ready() const
Definition: future:1463
Definition: future:151
exception_ptr make_exception_ptr(_Ex _Except) _NOEXCEPT
Definition: exception:378
bool _Is_ready_at_thread_exit() const
Definition: future:1468
_Promise< int > _MyPromise
Definition: future:1713
const _State_manager< _Ty > & _Get_state() const
Definition: future:1427
promise< void >::promise ( const promise< void > &  )
delete

Member Function Documentation

future<void> promise< void >::get_future ( )
inline
1684  { // return a future object that shares the associated
1685  // asynchronous state
1687  }
Definition: xtr1common:16
_Promise< int > _MyPromise
Definition: future:1713
Definition: future:1194
_State_manager< _Ty > & _Get_state_for_future()
Definition: future:1445
promise& promise< void >::operator= ( promise< void > &&  _Other)
inline
1663  { // assign from rvalue promise object
1664  promise(_STD move(_Other)).swap(*this);
1665  return (*this);
1666  }
promise()
Definition: future:1646
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1349
promise& promise< void >::operator= ( const promise< void > &  )
delete
void promise< void >::set_exception ( exception_ptr  _Exc)
inline
1700  { // store a result
1702  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1436
void _Set_exception(exception_ptr _Exc, bool _Defer)
Definition: future:1035
_Promise< int > _MyPromise
Definition: future:1713
void promise< void >::set_exception_at_thread_exit ( exception_ptr  _Exc)
inline
1705  { // store result and block until thread exit
1707  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1436
void _Set_exception(exception_ptr _Exc, bool _Defer)
Definition: future:1035
_Promise< int > _MyPromise
Definition: future:1713
void promise< void >::set_value ( )
inline
1690  { // store a (void) result
1692  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1436
void _Set_value(const _Ty &_Val, bool _Defer)
Definition: future:1013
_Promise< int > _MyPromise
Definition: future:1713
void promise< void >::set_value_at_thread_exit ( )
inline
1695  { // store result and block until thread exit
1697  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1436
void _Set_value(const _Ty &_Val, bool _Defer)
Definition: future:1013
_Promise< int > _MyPromise
Definition: future:1713
void promise< void >::swap ( promise< void > &  _Other)
inline
1679  { // exchange with _Other
1680  _MyPromise._Swap(_Other._MyPromise);
1681  }
void _Swap(_Promise &_Other)
Definition: future:1421
_Promise< _Ty > _MyPromise
Definition: future:1565
_Promise< int > _MyPromise
Definition: future:1713

Member Data Documentation

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

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