std::promise< _Res >

Section: C Library Functions (3)
Updated: Wed Apr 17 2019
Page Index
 

NAME

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

 

SYNOPSIS


 

Public Member Functions


promise (promise &&__rhs) noexcept

template<typename _Allocator > promise (allocator_arg_t, const _Allocator &__a)

template<typename _Allocator > promise (allocator_arg_t, const _Allocator &, promise &&__rhs)

promise (const promise &)=delete

future< _Res > get_future ()

promise & operator= (promise &&__rhs) noexcept

promise & operator= (const promise &)=delete

void set_exception (exception_ptr __p)

void set_exception_at_thread_exit (exception_ptr __p)

void set_value (const _Res &__r)

void set_value (_Res &&__r)

void set_value_at_thread_exit (const _Res &__r)

void set_value_at_thread_exit (_Res &&__r)

void swap (promise &__rhs) noexcept
 

Friends


template<typename , typename > class _State::_Setter
 

Detailed Description

 

template<typename _Res>


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

Definition at line 134 of file future.

 

Author

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


 

Index

NAME
SYNOPSIS
Public Member Functions
Friends
Detailed Description
template<typename _Res>
Author