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::__basic_future< _Res > - Common implementation for future and shared_future.

Author

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

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

Detailed Description

template<typename_Res>
       class std::__basic_future< _Res >"Common implementation for future and shared_future.

Member Function Documentation

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

Name

       std::__basic_future< _Res > - Common implementation for future and shared_future.

Synopsis

       #include <future>

       Inherits __future_base.

       Inherited by std::future<_Res>, and std::shared_future<_Res>.

   PublicMemberFunctions__basic_future (const __basic_future &)=delete__basic_future & operator= (const __basic_future &)=delete
       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_typetypedefshared_ptr< _State_base > __state_typeProtectedMemberFunctions__basic_future (const __state_type &__state)
       __basic_future (const shared_future< _Res > &) noexcept
       __basic_future (future< _Res > &&) noexcept
       __basic_future (shared_future< _Res > &&) noexcept
       __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

See Also