|
| std::__basic_future< _Res >::__basic_future (const shared_future< _Res > &) noexcept |
|
| std::__basic_future< _Res >::__basic_future (future< _Res > &&) noexcept |
|
| std::__basic_future< _Res >::__basic_future (shared_future< _Res > &&) noexcept |
|
template<typename _Fn , typename... _Args> |
future< __async_result_of< _Fn, _Args... > > | std::async (_Fn &&__fn, _Args &&... __args) |
|
template<typename _Fn , typename... _Args> |
future< __async_result_of< _Fn, _Args... > > | std::async (launch __policy, _Fn &&__fn, _Args &&... __args) |
|
const error_category & | std::future_category () noexcept |
|
error_code | std::make_error_code (future_errc __errc) noexcept |
|
error_condition | std::make_error_condition (future_errc __errc) noexcept |
|
constexpr launch | std::operator& (launch __x, launch __y) noexcept |
|
launch & | std::operator&= (launch &__x, launch __y) noexcept |
|
constexpr launch | std::operator^ (launch __x, launch __y) noexcept |
|
launch & | std::operator^= (launch &__x, launch __y) noexcept |
|
constexpr launch | std::operator| (launch __x, launch __y) noexcept |
|
launch & | std::operator|= (launch &__x, launch __y) noexcept |
|
constexpr launch | std::operator~ (launch __x) noexcept |
|
template<typename _Fun , typename _Signature = typename __function_guide_helper<decltype(&_Fun::operator())>::type> |
| std::packaged_task (_Fun) -> packaged_task< _Signature > |
|
template<typename _Res , typename... _ArgTypes> |
| std::packaged_task (_Res(*)(_ArgTypes...)) -> packaged_task< _Res(_ArgTypes...)> |
|
shared_future< _Res > | std::future< _Res >::share () noexcept |
|
shared_future< _Res & > | std::future< _Res & >::share () noexcept |
|
shared_future< void > | std::future< void >::share () noexcept |
|
template<typename _Res , typename... _ArgTypes> |
void | std::swap (packaged_task< _Res(_ArgTypes...)> &__x, packaged_task< _Res(_ArgTypes...)> &__y) noexcept |
|
template<typename _Res > |
void | std::swap (promise< _Res > &__x, promise< _Res > &__y) noexcept |
|
Futures and promises provide support for retrieving the result from an asynchronous function, e.g. one that is running in another thread. A std::future
represents an asynchronous result that will become ready at some later time. A consumer can wait on a future until the result is ready to be accessed.
- Since
- C++11
◆ future_errc
Error code for futures.
Definition at line 72 of file future.
◆ future_status
Status code for futures.
Definition at line 184 of file future.
◆ launch
Launch code for futures.
Definition at line 147 of file future.
◆ __basic_future() [1/3]
|
inlineexplicitprotectednoexcept |
◆ __basic_future() [2/3]
|
inlineexplicitprotectednoexcept |
◆ __basic_future() [3/3]
|
inlineexplicitprotectednoexcept |
◆ async() [1/2]
template<
typename _Fn , typename... _Args>
async, potential overload
Definition at line 1826 of file future.
◆ async() [2/2]
template<
typename _Fn , typename... _Args>
◆ future_category()
Points to a statically-allocated object derived from error_category.
◆ make_error_code()
◆ make_error_condition()
Overload of make_error_condition for future_errc
.
Definition at line 98 of file future.
◆ operator&()
◆ operator&=()
◆ operator^()
◆ operator^=()
◆ operator|()
◆ operator|=()
◆ operator~()
◆ share() [1/3]
◆ share() [2/3]
◆ share() [3/3]
◆ swap() [1/2]
void std::swap |
( |
packaged_task< _Res(_ArgTypes...)> & |
__x, |
|
|
packaged_task< _Res(_ArgTypes...)> & |
__y |
|
) |
| |
|
inlinenoexcept |
◆ swap() [2/2]