.TH "std::future< _Res >" 3cxx "Tue Nov 27 2012" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::future< _Res > \- .SH SYNOPSIS .br .PP .PP Inherits \fBstd::__basic_future< _Res >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBfuture\fP (\fBfuture\fP &&__uf)" .br .ti -1c .RI "\fBfuture\fP (const \fBfuture\fP &)" .br .ti -1c .RI "_Res \fBget\fP ()" .br .ti -1c .RI "\fBfuture\fP & \fBoperator=\fP (const \fBfuture\fP &)" .br .ti -1c .RI "\fBfuture\fP & \fBoperator=\fP (\fBfuture\fP &&__fut)" .br .ti -1c .RI "bool \fBvalid\fP () const " .br .ti -1c .RI "void \fBwait\fP () const " .br .ti -1c .RI "template bool \fBwait_for\fP (const \fBchrono::duration\fP< _Rep, _Period > &__rel) const " .br .ti -1c .RI "template bool \fBwait_until\fP (const \fBchrono::time_point\fP< _Clock, _Duration > &__abs) const " .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "template static \fB_Ptr\fP< \fB_Result_alloc\fP .br < _Res, _Allocator > >::type \fB_S_allocate_result\fP (const _Allocator &__a)" .br .in -1c .SS "Protected Types" .in +1c .ti -1c .RI "typedef \fB__future_base::_Result\fP .br < _Res > & \fB__result_type\fP" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fB__result_type\fP \fB_M_get_result\fP ()" .br .ti -1c .RI "void \fB_M_swap\fP (\fB__basic_future\fP &__that)" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template \fBfuture\fP< typename result_of .br < _Fn(_Args\&.\&.\&.)>::type > \fBasync\fP (\fBlaunch\fP, _Fn &&, _Args &&\&.\&.\&.)" .br .ti -1c .RI "class \fBpackaged_task\fP" .br .ti -1c .RI "class \fBpromise< _Res >\fP" .br .in -1c .SH "Detailed Description" .PP .SS "templateclass std::future< _Res >" Primary template for future\&. .PP Definition at line 592 of file future\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::future\fP< _Res >::\fBfuture\fP (\fBfuture\fP< _Res > &&__uf)\fC [inline]\fP" .PP Move constructor\&. .PP Definition at line 610 of file future\&. .SH "Member Function Documentation" .PP .SS "template \fB__result_type\fP \fBstd::__basic_future\fP< _Res >::_M_get_result ()\fC [inline]\fP, \fC [protected]\fP, \fC [inherited]\fP" .PP Wait for the state to be ready and rethrow any stored exception\&. .PP Definition at line 545 of file future\&. .PP Referenced by std::future< _Res >::get(), std::future< void >::get(), and std::shared_future< _Res >::get()\&. .SS "template _Res \fBstd::future\fP< _Res >::get ()\fC [inline]\fP" .PP Retrieving the value\&. .PP Definition at line 624 of file future\&. .PP References std::__basic_future< _Res >::_M_get_result()\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.