libstdc++
std::promise< void > Class Reference

Public Member Functions

template<typename _Allocator >
 promise (allocator_arg_t, const _Allocator &, promise &&__rhs)
 
template<typename _Allocator >
 promise (allocator_arg_t, const _Allocator &__a)
 
 promise (const promise &)=delete
 
 promise (promise &&__rhs) noexcept
 
future< void > get_future ()
 
promiseoperator= (const promise &)=delete
 
promiseoperator= (promise &&__rhs) noexcept
 
void set_exception (exception_ptr __p)
 
void set_exception_at_thread_exit (exception_ptr __p)
 
void set_value ()
 
void set_value_at_thread_exit ()
 
void swap (promise &__rhs) noexcept
 

Friends

template<typename , typename >
struct _State::_Setter
 

Detailed Description

Explicit specialization for promise<void>

Definition at line 1283 of file future.

Constructor & Destructor Documentation

◆ promise() [1/4]

std::promise< void >::promise ( )
inline

Definition at line 1295 of file future.

◆ promise() [2/4]

std::promise< void >::promise ( promise< void > &&  __rhs)
inlinenoexcept

Definition at line 1300 of file future.

◆ promise() [3/4]

template<typename _Allocator >
std::promise< void >::promise ( allocator_arg_t  ,
const _Allocator &  __a 
)
inline

Definition at line 1306 of file future.

◆ promise() [4/4]

template<typename _Allocator >
std::promise< void >::promise ( allocator_arg_t  ,
const _Allocator &  ,
promise< void > &&  __rhs 
)
inline

Definition at line 1314 of file future.

◆ ~promise()

std::promise< void >::~promise ( )
inline

Definition at line 1321 of file future.

Member Function Documentation

◆ get_future()

future< void > std::promise< void >::get_future ( )
inline

Definition at line 1346 of file future.

◆ operator=()

promise & std::promise< void >::operator= ( promise< void > &&  __rhs)
inlinenoexcept

Definition at line 1329 of file future.

◆ set_exception()

void std::promise< void >::set_exception ( exception_ptr  __p)
inline

Definition at line 1355 of file future.

◆ set_exception_at_thread_exit()

void std::promise< void >::set_exception_at_thread_exit ( exception_ptr  __p)
inline

Definition at line 1363 of file future.

◆ set_value()

void std::promise< void >::set_value ( )
inline

Definition at line 1351 of file future.

◆ set_value_at_thread_exit()

void std::promise< void >::set_value_at_thread_exit ( )
inline

Definition at line 1359 of file future.

◆ swap()

void std::promise< void >::swap ( promise< void > &  __rhs)
inlinenoexcept

Definition at line 1338 of file future.

Friends And Related Symbol Documentation

◆ _State::_Setter

template<typename , typename >
friend struct _State::_Setter
friend

Definition at line 1288 of file future.


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