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::promise< _Res > - Primary template for promise.

Author

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

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

Detailed Description

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

Name

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

Synopsis

       #include <future>

   PublicMemberFunctions
       template<typename_Allocator > promise (allocator_arg_t, const _Allocator &, promise &&__rhs)
       template<typename_Allocator > promise (allocator_arg_t, const _Allocator &__a)
       promise (const promise &)=deletepromise (promise &&__rhs) noexcept
       future< _Res > get_future ()
       promise & operator= (const promise &)=deletepromise & operator= (promise &&__rhs) noexcept
       voidset_exception (exception_ptr __p)
       voidset_exception_at_thread_exit (exception_ptr __p)
       voidset_value (_Res &&__r)
       voidset_value (const _Res &__r)
       voidset_value_at_thread_exit (_Res &&__r)
       voidset_value_at_thread_exit (const _Res &__r)
       voidswap (promise &__rhs) noexcept

   Friends
       template<typename , typename > struct_State::_Setter

See Also