Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::promise< R & > Class Template Reference

#include <future.hpp>

Public Member Functions

 promise ()
 
 ~promise ()
 
 promise (BOOST_THREAD_RV_REF(promise) rhs) BOOST_NOEXCEPT
 
promiseoperator= (BOOST_THREAD_RV_REF(promise) rhs) BOOST_NOEXCEPT
 
void swap (promise &other)
 
unique_future< R & > get_future ()
 
void set_value (R &r)
 
void set_exception (boost::exception_ptr p)
 
template<typename E >
void set_exception (E ex)
 
void set_value_at_thread_exit (R &r)
 
void set_exception_at_thread_exit (exception_ptr e)
 
template<typename E >
void set_exception_at_thread_exit (E ex)
 
template<typename F >
void set_wait_callback (F f)
 

Constructor & Destructor Documentation

template<typename R >
boost::promise< R & >::promise ( )
inline
template<typename R >
boost::promise< R & >::~promise ( )
inline

References boost::lock().

template<typename R >
boost::promise< R & >::promise ( BOOST_THREAD_RV_REF(promise< R & >)  rhs)
inline

Member Function Documentation

template<typename R >
unique_future<R&> boost::promise< R & >::get_future ( )
inline
template<typename R >
promise& boost::promise< R & >::operator= ( BOOST_THREAD_RV_REF(promise< R & >)  rhs)
inline
template<typename R >
void boost::promise< R & >::set_exception ( boost::exception_ptr  p)
inline
template<typename R >
template<typename E >
void boost::promise< R & >::set_exception ( E  ex)
inline
template<typename R >
void boost::promise< R & >::set_exception_at_thread_exit ( exception_ptr  e)
inline
template<typename R >
template<typename E >
void boost::promise< R & >::set_exception_at_thread_exit ( E  ex)
inline
template<typename R >
void boost::promise< R & >::set_value ( R &  r)
inline
template<typename R >
void boost::promise< R & >::set_value_at_thread_exit ( R &  r)
inline
template<typename R >
template<typename F >
void boost::promise< R & >::set_wait_callback ( f)
inline
template<typename R >
void boost::promise< R & >::swap ( promise< R & > &  other)
inline

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