std::future< _Res >(3) Library Functions Manual std::future< _Res >(3)

std::future< _Res > - Primary template for future.

#include <future>

Inherits std::__basic_future< _Res >.


future (const future &)=delete
future (future &&__uf) noexcept
Move constructor. _Res get ()
Retrieving the value. future & operator= (const future &)=delete
future & operator= (future &&__fut) noexcept
shared_future< _Res > share () noexcept
bool valid () const noexcept
void wait () const
template<typename _Rep, typename _Period> future_status wait_for (const chrono::duration< _Rep, _Period > &__rel) const
template<typename _Clock, typename _Duration> future_status wait_until (const chrono::time_point< _Clock, _Duration > &__abs) const


typedef __future_base::_Result< _Res > & __result_type


__result_type _M_get_result () const
Wait for the state to be ready and rethrow any stored exception. void _M_swap (__basic_future &__that) noexcept


template<typename _Fn, typename... _Args> future< __async_result_of< _Fn, _Args... > > async (launch, _Fn &&, _Args &&...)
template<typename> class packaged_task
class promise< _Res >

class std::future< _Res >"Primary template for future.

Move constructor.

References std::move().

Wait for the state to be ready and rethrow any stored exception.

Referenced by std::future< _Res >::get(), and std::shared_future< _Res >::get().

Retrieving the value.

References std::__basic_future< _Res >::_M_get_result(), and std::move().

Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++