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

#include <future.hpp>

Public Types

typedef R result_type
 

Public Member Functions

 packaged_task ()
 
template<class F >
 packaged_task (BOOST_THREAD_FWD_REF(F) f, typename boost::disable_if< is_same< typename decay< F >::type, packaged_task >, dummy * >::type=0)
 
 ~packaged_task ()
 
 packaged_task (BOOST_THREAD_RV_REF(packaged_task) other) BOOST_NOEXCEPT
 
packaged_taskoperator= (BOOST_THREAD_RV_REF(packaged_task) other) BOOST_NOEXCEPT
 
void reset ()
 
void swap (packaged_task &other) BOOST_NOEXCEPT
 
bool valid () const BOOST_NOEXCEPT
 
unique_future< R > get_future ()
 
void operator() ()
 
void make_ready_at_thread_exit ()
 
template<typename F >
void set_wait_callback (F f)
 

Member Typedef Documentation

template<typename R >
typedef R boost::packaged_task< R >::result_type

Constructor & Destructor Documentation

template<typename R >
boost::packaged_task< R >::packaged_task ( )
inline
template<typename R >
template<class F >
boost::packaged_task< R >::packaged_task ( BOOST_THREAD_FWD_REF(F)  f,
typename boost::disable_if< is_same< typename decay< F >::type, packaged_task< R > >, dummy * >::type  = 0 
)
inlineexplicit
template<typename R >
boost::packaged_task< R >::~packaged_task ( )
inline
template<typename R >
boost::packaged_task< R >::packaged_task ( BOOST_THREAD_RV_REF(packaged_task< R >)  other)
inline

Member Function Documentation

template<typename R >
unique_future<R> boost::packaged_task< R >::get_future ( )
inline
template<typename R >
void boost::packaged_task< R >::make_ready_at_thread_exit ( )
inline
template<typename R >
void boost::packaged_task< R >::operator() ( )
inline
template<typename R >
packaged_task& boost::packaged_task< R >::operator= ( BOOST_THREAD_RV_REF(packaged_task< R >)  other)
inline
template<typename R >
void boost::packaged_task< R >::reset ( void  )
inline
template<typename R >
template<typename F >
void boost::packaged_task< R >::set_wait_callback ( f)
inline
template<typename R >
void boost::packaged_task< R >::swap ( packaged_task< R > &  other)
inline
template<typename R >
bool boost::packaged_task< R >::valid ( ) const
inline

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