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
1652  { // construct
1653  }
_Promise< int > _MyPromise
Definition: future:1717
template<class _Alloc >
promise< void >::promise ( allocator_arg_t  ,
const _Alloc &  _Al 
)
inline
1657  : _MyPromise(_Make_associated_state<int>(_Al))
1658  { // construct with allocator
1659  }
_Promise< int > _MyPromise
Definition: future:1717
promise< void >::promise ( promise< void > &&  _Other)
inline
1663  { // construct from rvalue promise object
1664  }
_Promise< _Ty > _MyPromise
Definition: future:1569
constexpr _Ty && forward(typename remove_reference< _Ty >::type &_Arg) _NOEXCEPT
Definition: type_traits:1273
_Promise< int > _MyPromise
Definition: future:1717
promise< void >::~promise ( )
inline
1673  { // destroy
1675  { // exception if destroyed before function object returns
1678  ._Set_exception(_XSTD make_exception_ptr(_Fut), false);
1679  }
1680  }
bool _Is_valid() const _NOEXCEPT
Definition: future:1467
error_code make_error_code(_Future_errc _Errno) _NOEXCEPT
Definition: future:120
#define _XSTD
Definition: xstddef:21
bool _Is_ready() const
Definition: future:1472
Definition: future:152
exception_ptr make_exception_ptr(_Ex _Except) _NOEXCEPT
Definition: exception:371
void _Set_exception(_XSTD exception_ptr _Exc, bool _Defer)
Definition: future:1049
_Promise< int > _MyPromise
Definition: future:1717
const _State_manager< _Ty > & _Get_state() const
Definition: future:1436
promise< void >::promise ( const promise< void > &  )
delete

Member Function Documentation

future<void> promise< void >::get_future ( )
inline
1688  { // return a future object that shares the associated
1689  // asynchronous state
1691  }
Definition: xtr1common:15
_Promise< int > _MyPromise
Definition: future:1717
Definition: future:1203
_State_manager< _Ty > & _Get_state_for_future()
Definition: future:1454
promise& promise< void >::operator= ( promise< void > &&  _Other)
inline
1667  { // assign from rvalue promise object
1668  _MyPromise = _STD forward<_Promise<int> >(_Other._MyPromise);
1669  return (*this);
1670  }
_Promise< _Ty > _MyPromise
Definition: future:1569
_Promise< int > _MyPromise
Definition: future:1717
promise& promise< void >::operator= ( const promise< void > &  )
delete
void promise< void >::set_exception ( _XSTD exception_ptr  _Exc)
inline
1704  { // store a result
1706  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1445
void _Set_exception(_XSTD exception_ptr _Exc, bool _Defer)
Definition: future:1049
_Promise< int > _MyPromise
Definition: future:1717
void promise< void >::set_exception_at_thread_exit ( _XSTD exception_ptr  _Exc)
inline
1709  { // store result and block until thread exit
1711  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1445
void _Set_exception(_XSTD exception_ptr _Exc, bool _Defer)
Definition: future:1049
_Promise< int > _MyPromise
Definition: future:1717
void promise< void >::set_value ( )
inline
1694  { // store a (void) result
1696  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1445
void _Set_value(const _Ty &_Val, bool _Defer)
Definition: future:1027
_Promise< int > _MyPromise
Definition: future:1717
void promise< void >::set_value_at_thread_exit ( )
inline
1699  { // store result and block until thread exit
1701  }
_State_manager< _Ty > & _Get_state_for_set()
Definition: future:1445
void _Set_value(const _Ty &_Val, bool _Defer)
Definition: future:1027
_Promise< int > _MyPromise
Definition: future:1717
void promise< void >::swap ( promise< void > &  _Other)
inline
1683  { // exchange with _Other
1684  _MyPromise._Swap(_Other._MyPromise);
1685  }
void _Swap(_Promise &_Other)
Definition: future:1430
_Promise< _Ty > _MyPromise
Definition: future:1569
_Promise< int > _MyPromise
Definition: future:1717

Member Data Documentation

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

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