.TH "std::__basic_future< _Res >" 3cxx "Fri May 28 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::__basic_future< _Res > \- Common implementation for future and shared_future\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::__future_base\fP\&. .PP Inherited by \fBstd::future< _Res >\fP, and \fBstd::shared_future< _Res >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "template using \fB_Ptr\fP = \fBunique_ptr\fP< _Res, _Result_base::_Deleter >" .br .RI "A unique_ptr for result objects\&. " .ti -1c .RI "using \fB_State_base\fP = _State_baseV2" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fB__basic_future\fP (const \fB__basic_future\fP &)=delete" .br .ti -1c .RI "\fB__basic_future\fP & \fBoperator=\fP (const \fB__basic_future\fP &)=delete" .br .ti -1c .RI "bool \fBvalid\fP () const noexcept" .br .ti -1c .RI "void \fBwait\fP () const" .br .ti -1c .RI "template \fBfuture_status\fP \fBwait_for\fP (const \fBchrono::duration\fP< _Rep, _Period > &__rel) const" .br .ti -1c .RI "template \fBfuture_status\fP \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< _Res, _Allocator > > \fB_S_allocate_result\fP (const _Allocator &__a)" .br .ti -1c .RI "template static \fB_Ptr\fP< \fB_Result\fP< _Res > > \fB_S_allocate_result\fP (const \fBstd::allocator\fP< _Tp > &__a)" .br .ti -1c .RI "template static \fBstd::shared_ptr\fP< _State_base > \fB_S_make_async_state\fP (_BoundFn &&__fn)" .br .ti -1c .RI "template static \fBstd::shared_ptr\fP< _State_base > \fB_S_make_deferred_state\fP (_BoundFn &&__fn)" .br .ti -1c .RI "template static _Task_setter< _Res_ptr, _BoundFn > \fB_S_task_setter\fP (_Res_ptr &__ptr, _BoundFn &__call)" .br .in -1c .SS "Protected Types" .in +1c .ti -1c .RI "typedef \fB__future_base::_Result\fP< _Res > & \fB__result_type\fP" .br .ti -1c .RI "typedef \fBshared_ptr\fP< _State_base > \fB__state_type\fP" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fB__basic_future\fP (const \fB__state_type\fP &__state)" .br .ti -1c .RI "\fB__basic_future\fP (const \fBshared_future\fP< _Res > &) noexcept" .br .ti -1c .RI "\fB__basic_future\fP (\fBfuture\fP< _Res > &&) noexcept" .br .ti -1c .RI "\fB__basic_future\fP (\fBshared_future\fP< _Res > &&) noexcept" .br .ti -1c .RI "\fB__result_type\fP \fB_M_get_result\fP () const" .br .RI "Wait for the state to be ready and rethrow any stored exception\&. " .ti -1c .RI "void \fB_M_swap\fP (\fB__basic_future\fP &__that) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::__basic_future< _Res >" Common implementation for future and shared_future\&. .PP Definition at line 671 of file future\&. .SH "Member Typedef Documentation" .PP .SS "template using \fBstd::__future_base::_Ptr\fP = \fBunique_ptr\fP<_Res, _Result_base::_Deleter>\fC [inherited]\fP" .PP A unique_ptr for result objects\&. .PP Definition at line 223 of file future\&. .SH "Member Function Documentation" .PP .SS "template \fB__result_type\fP \fBstd::__basic_future\fP< _Res >::_M_get_result () const\fC [inline]\fP, \fC [protected]\fP" .PP Wait for the state to be ready and rethrow any stored exception\&. .PP Definition at line 714 of file future\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.