libstdc++
Public Member Functions | Protected Types | Protected Member Functions | Friends | List of all members
std::future< void > Class Template Reference
Inheritance diagram for std::future< void >:
[legend]

Public Member Functions

 future (future &&__uf) noexcept
 
 future (const future &)=delete
 
void get ()
 
futureoperator= (const future &)=delete
 
futureoperator= (future &&__fut) noexcept
 
shared_future< void > share () noexcept
 
bool valid () const noexcept
 
void wait () const
 
future_status wait_for (const chrono::duration< _Rep, _Period > &__rel) const
 
future_status wait_until (const chrono::time_point< _Clock, _Duration > &__abs) const
 

Protected Types

typedef __future_base::_Result< void > & __result_type
 

Protected Member Functions

__result_type _M_get_result () const
 
void _M_swap (__basic_future &__that) noexcept
 

Friends

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

Detailed Description

template<>
class std::future< void >

Explicit specialization for future<void>

Definition at line 878 of file future.

Constructor & Destructor Documentation

◆ future()

std::future< void >::future ( future< void > &&  __uf)
inlinenoexcept

Move constructor.

Definition at line 896 of file future.

Member Function Documentation

◆ _M_get_result()

__result_type std::__basic_future< void >::_M_get_result ( ) const
inlineprotectedinherited

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

Definition at line 738 of file future.

◆ get()

void std::future< void >::get ( )
inline

Retrieving the value.

Definition at line 910 of file future.


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