.TH "std::shared_future< _Res >" 3cxx "Tue Jun 13 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::shared_future< _Res > \- Primary template for shared_future\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::__basic_future< _Res >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBshared_future\fP (const \fBshared_future\fP &__sf) noexcept" .br .RI "Copy constructor\&. " .ti -1c .RI "\fBshared_future\fP (\fBfuture\fP< _Res > &&__uf) noexcept" .br .RI "Construct from a future rvalue\&. " .ti -1c .RI "\fBshared_future\fP (\fBshared_future\fP &&__sf) noexcept" .br .RI "Construct from a shared_future rvalue\&. " .ti -1c .RI "const _Res & \fBget\fP () const" .br .RI "Retrieving the value\&. " .ti -1c .RI "\fBshared_future\fP & \fBoperator=\fP (const \fBshared_future\fP &__sf) noexcept" .br .ti -1c .RI "\fBshared_future\fP & \fBoperator=\fP (\fBshared_future\fP &&__sf) noexcept" .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 "Protected Types" .in +1c .ti -1c .RI "typedef __future_base::_Result< _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 "__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 "void \fB_M_swap\fP (\fB__basic_future\fP &__that) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::shared_future< _Res >"Primary template for shared_future\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::shared_future\fP< _Res >::shared_future (const \fBshared_future\fP< _Res > & __sf)\fC [inline]\fP, \fC [noexcept]\fP" .PP Copy constructor\&. .SS "template \fBstd::shared_future\fP< _Res >::shared_future (\fBfuture\fP< _Res > && __uf)\fC [inline]\fP, \fC [noexcept]\fP" .PP Construct from a future rvalue\&. .SS "template \fBstd::shared_future\fP< _Res >::shared_future (\fBshared_future\fP< _Res > && __sf)\fC [inline]\fP, \fC [noexcept]\fP" .PP Construct from a shared_future rvalue\&. .SH "Member Function Documentation" .PP .SS "template __result_type \fBstd::__basic_future\fP< _Res >::_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 const _Res & \fBstd::shared_future\fP< _Res >::get () const\fC [inline]\fP" .PP Retrieving the value\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.