.TH "std::promise< _Res >" 3cxx "Thu Feb 16 2023" "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 (allocator_arg_t, const _Allocator &, \fBpromise\fP &&__rhs)" .br .ti -1c .RI "template \fBpromise\fP (allocator_arg_t, 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 struct \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 \fB1059\fP of file \fBfuture\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::promise\fP< _Res >::promise ()\fC [inline]\fP" .PP Definition at line \fB1078\fP of file \fBfuture\fP\&. .SS "template \fBstd::promise\fP< _Res >::promise (\fBpromise\fP< _Res > && __rhs)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1083\fP of file \fBfuture\fP\&. .SS "template template \fBstd::promise\fP< _Res >::promise (allocator_arg_t, const _Allocator & __a)\fC [inline]\fP" .PP Definition at line \fB1089\fP of file \fBfuture\fP\&. .SS "template template \fBstd::promise\fP< _Res >::promise (allocator_arg_t, const _Allocator &, \fBpromise\fP< _Res > && __rhs)\fC [inline]\fP" .PP Definition at line \fB1095\fP of file \fBfuture\fP\&. .SS "template \fBstd::promise\fP< _Res >::~\fBpromise\fP ()\fC [inline]\fP" .PP Definition at line \fB1102\fP of file \fBfuture\fP\&. .SH "Member Function Documentation" .PP .SS "template \fBfuture\fP< _Res > \fBstd::promise\fP< _Res >::get_future ()\fC [inline]\fP" .PP Definition at line \fB1127\fP of file \fBfuture\fP\&. .SS "template \fBpromise\fP & \fBstd::promise\fP< _Res >::operator= (\fBpromise\fP< _Res > && __rhs)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1110\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::set_exception (\fBexception_ptr\fP __p)\fC [inline]\fP" .PP Definition at line \fB1140\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::set_exception_at_thread_exit (\fBexception_ptr\fP __p)\fC [inline]\fP" .PP Definition at line \fB1158\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::set_value (_Res && __r)\fC [inline]\fP" .PP Definition at line \fB1136\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::set_value (const _Res & __r)\fC [inline]\fP" .PP Definition at line \fB1132\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::set_value_at_thread_exit (_Res && __r)\fC [inline]\fP" .PP Definition at line \fB1151\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::set_value_at_thread_exit (const _Res & __r)\fC [inline]\fP" .PP Definition at line \fB1144\fP of file \fBfuture\fP\&. .SS "template void \fBstd::promise\fP< _Res >::swap (\fBpromise\fP< _Res > & __rhs)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB1119\fP of file \fBfuture\fP\&. .SH "Friends And Related Function Documentation" .PP .SS "template template friend struct _State::_Setter\fC [friend]\fP" .PP Definition at line \fB1071\fP of file \fBfuture\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.