logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::future< _Res > - Primary template for future.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                          std::future<_Res>(3cxx)

Constructor & Destructor Documentation

template<typename_Res>std::future<_Res>::future(future<_Res>&&__uf)[inline],[noexcept]
       Move constructor.

Detailed Description

template<typename_Res>
       class std::future< _Res >"Primary template for future.

Member Function Documentation

template<typename_Res>__result_typestd::__basic_future<_Res>::_M_get_result()const[inline],[protected],[inherited]
       Wait for the state to be ready and rethrow any stored exception.

   template<typename_Res>_Resstd::future<_Res>::get()[inline]
       Retrieving the value.

Name

       std::future< _Res > - Primary template for future.

Synopsis

       #include <future>

       Inherits std::__basic_future<_Res>.

   PublicMemberFunctionsfuture (const future &)=deletefuture (future &&__uf) noexcept
           Move constructor.
       _Resget ()
           Retrieving the value.
       future & operator= (const future &)=deletefuture & operator= (future &&__fut) noexcept
       shared_future< _Res > share () noexcept
       bool valid () const noexcept
       voidwait () const
       template<typename _Rep , typename_Period > future_statuswait_for (const chrono::duration< _Rep, _Period
           > &__rel) const
       template<typename_Clock , typename_Duration > future_statuswait_until (const chrono::time_point<
           _Clock, _Duration > &__abs) const

   ProtectedTypestypedef __future_base::_Result< _Res > & __result_typeProtectedMemberFunctions
       __result_type _M_get_result () const
           Wait for the state to be ready and rethrow any stored exception.
       void_M_swap (__basic_future &__that) noexcept

   Friends
       template<typename _Fn , typename... _Args> future< __async_result_of< _Fn, _Args... > > async (launch,
           _Fn &&, _Args &&...)
       template<typename > classpackaged_taskclasspromise<_Res>

See Also