.TH "std::future< _Res >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::future< _Res > \- Primary template for future\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::__basic_future< _Res >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBfuture\fP (const \fBfuture\fP &)=\fBdelete\fP" .br .ti -1c .RI "\fBfuture\fP (\fBfuture\fP &&\fB__uf\fP) noexcept" .br .RI "Move constructor\&. " .ti -1c .RI "\fB_Res\fP \fBget\fP ()" .br .RI "Retrieving the value\&. " .ti -1c .RI "\fBfuture\fP & \fBoperator=\fP (const \fBfuture\fP &)=\fBdelete\fP" .br .ti -1c .RI "\fBfuture\fP & \fBoperator=\fP (\fBfuture\fP &&\fB__fut\fP) noexcept" .br .ti -1c .RI "\fBshared_future\fP< \fB_Res\fP > \fBshare\fP () noexcept" .br .ti -1c .RI "bool \fBvalid\fP () const noexcept" .br .ti -1c .RI "\fBvoid\fP \fBwait\fP () const" .br .ti -1c .RI "template<\fBtypename\fP _Rep , \fBtypename\fP \fB_Period\fP > \fBfuture_status\fP \fBwait_for\fP (const \fBchrono::duration\fP< _Rep, \fB_Period\fP > &\fB__rel\fP) const" .br .ti -1c .RI "template<\fBtypename\fP \fB_Clock\fP , \fBtypename\fP \fB_Duration\fP > \fBfuture_status\fP \fBwait_until\fP (const \fBchrono::time_point\fP< \fB_Clock\fP, \fB_Duration\fP > &\fB__abs\fP) const" .br .in -1c .SS "Protected Types" .in +1c .ti -1c .RI "\fBtypedef\fP __future_base::_Result< \fB_Res\fP > & \fB__result_type\fP" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "__result_type \fB_M_get_result\fP () const" .br .RI "Wait for the state to be ready and rethrow any stored exception\&. " .ti -1c .RI "\fBvoid\fP \fB_M_swap\fP (\fB__basic_future\fP &\fB__that\fP) noexcept" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template<\fBtypename\fP _Fn , typename\&.\&.\&. _Args> \fBfuture\fP< \fB__async_result_of\fP< _Fn, _Args\&.\&.\&. > > \fBasync\fP (\fBlaunch\fP, _Fn &&, \fB_Args\fP &&\&.\&.\&.)" .br .ti -1c .RI "template<\fBtypename\fP > \fBclass\fP \fBpackaged_task\fP" .br .ti -1c .RI "\fBclass\fP \fBpromise< _Res >\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP \fB_Res\fP> .br class std::future< _Res >"Primary template for future\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP \fB_Res\fP > \fBstd::future\fP< \fB_Res\fP >::future (\fBfuture\fP< \fB_Res\fP > && __uf)\fC [inline]\fP, \fC [noexcept]\fP" .PP Move constructor\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP \fB_Res\fP > __result_type \fBstd::__basic_future\fP< \fB_Res\fP >::_M_get_result () const\fC [inline]\fP, \fC [protected]\fP, \fC [inherited]\fP" .PP Wait for the state to be ready and rethrow any stored exception\&. .SS "template<\fBtypename\fP \fB_Res\fP > \fB_Res\fP \fBstd::future\fP< \fB_Res\fP >::get ()\fC [inline]\fP" .PP Retrieving the value\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.