.TH "std::__basic_future< _Res >" 3cxx "Thu Feb 16 2023" "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 _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 \fB673\fP of file \fBfuture\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef \fB__future_base::_Result\fP<_Res>& \fBstd::__basic_future\fP< _Res >::__result_type\fC [protected]\fP" .PP Definition at line \fB677\fP of file \fBfuture\fP\&. .SS "template typedef \fBshared_ptr\fP<_State_base> \fBstd::__basic_future\fP< _Res >::__state_type\fC [protected]\fP" .PP Definition at line \fB676\fP of file \fBfuture\fP\&. .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 \fB222\fP of file \fBfuture\fP\&. .SS "using std::__future_base::_State_base = _State_baseV2\fC [inherited]\fP" .PP Definition at line \fB597\fP of file \fBfuture\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::__basic_future\fP< _Res >::__basic_future (const \fB__state_type\fP & __state)\fC [inline]\fP, \fC [explicit]\fP, \fC [protected]\fP" .PP Definition at line \fB732\fP of file \fBfuture\fP\&. .SS "template constexpr \fBstd::__basic_future\fP< _Res >::__basic_future ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [protected]\fP, \fC [noexcept]\fP" .PP Definition at line \fB750\fP of file \fBfuture\fP\&. .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 \fB716\fP of file \fBfuture\fP\&. .SS "template void \fBstd::__basic_future\fP< _Res >::_M_swap (\fB__basic_future\fP< _Res > & __that)\fC [inline]\fP, \fC [protected]\fP, \fC [noexcept]\fP" .PP Definition at line \fB725\fP of file \fBfuture\fP\&. .SS "template static \fB_Ptr\fP< \fB_Result_alloc\fP< _Res, _Allocator > > std::__future_base::_S_allocate_result (const _Allocator & __a)\fC [inline]\fP, \fC [static]\fP, \fC [inherited]\fP" .PP Definition at line \fB287\fP of file \fBfuture\fP\&. .SS "template static \fB_Ptr\fP< \fB_Result\fP< _Res > > std::__future_base::_S_allocate_result (const \fBstd::allocator\fP< _Tp > & __a)\fC [inline]\fP, \fC [static]\fP, \fC [inherited]\fP" .PP Definition at line \fB300\fP of file \fBfuture\fP\&. .SS "template static _Task_setter< _Res_ptr, _BoundFn > std::__future_base::_S_task_setter (_Res_ptr & __ptr, _BoundFn & __call)\fC [inline]\fP, \fC [static]\fP, \fC [inherited]\fP" .PP Definition at line \fB621\fP of file \fBfuture\fP\&. .SS "template bool \fBstd::__basic_future\fP< _Res >::valid () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB688\fP of file \fBfuture\fP\&. .SS "template void \fBstd::__basic_future\fP< _Res >::wait () const\fC [inline]\fP" .PP Definition at line \fB691\fP of file \fBfuture\fP\&. .SS "template template \fBfuture_status\fP \fBstd::__basic_future\fP< _Res >::wait_for (const \fBchrono::duration\fP< _Rep, _Period > & __rel) const\fC [inline]\fP" .PP Definition at line \fB699\fP of file \fBfuture\fP\&. .SS "template template \fBfuture_status\fP \fBstd::__basic_future\fP< _Res >::wait_until (const \fBchrono::time_point\fP< _Clock, _Duration > & __abs) const\fC [inline]\fP" .PP Definition at line \fB707\fP of file \fBfuture\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.