.TH "std::promise< _Res >" 3cxx "Sat Aug 14 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::promise< _Res > \- Primary template for promise\&. .SH SYNOPSIS .br .PP .SS "Public Member Functions" .in +1c .ti -1c .RI "template \fBpromise\fP (\fBallocator_arg_t\fP, const _Allocator &, \fBpromise\fP &&__rhs)" .br .ti -1c .RI "template \fBpromise\fP (\fBallocator_arg_t\fP, const _Allocator &__a)" .br .ti -1c .RI "\fBpromise\fP (const \fBpromise\fP &)=delete" .br .ti -1c .RI "\fBpromise\fP (\fBpromise\fP &&__rhs) noexcept" .br .ti -1c .RI "\fBfuture\fP< _Res > \fBget_future\fP ()" .br .ti -1c .RI "\fBpromise\fP & \fBoperator=\fP (const \fBpromise\fP &)=delete" .br .ti -1c .RI "\fBpromise\fP & \fBoperator=\fP (\fBpromise\fP &&__rhs) noexcept" .br .ti -1c .RI "void \fBset_exception\fP (\fBexception_ptr\fP __p)" .br .ti -1c .RI "void \fBset_exception_at_thread_exit\fP (\fBexception_ptr\fP __p)" .br .ti -1c .RI "void \fBset_value\fP (_Res &&__r)" .br .ti -1c .RI "void \fBset_value\fP (const _Res &__r)" .br .ti -1c .RI "void \fBset_value_at_thread_exit\fP (_Res &&__r)" .br .ti -1c .RI "void \fBset_value_at_thread_exit\fP (const _Res &__r)" .br .ti -1c .RI "void \fBswap\fP (\fBpromise\fP &__rhs) noexcept" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template class \fB_State::_Setter\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::promise< _Res >" Primary template for promise\&. .PP Definition at line 1043 of file future\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.