STD::PROMISE(3cxx)

🌸 NAME 🌸

std::promise< _Res > β€” manual 3cxx β€” Primary template for promise. that's the whole name card, bestie πŸ’–

✨ SYNOPSIS ✨

#include <future>

πŸ’… Public Member Functions πŸ’…

okay so here's the full roster, no skips, no cap:

template<typename _Allocator > promise (allocator_arg_t, const _Allocator &, promise &&__rhs)
template<typename _Allocator > promise (allocator_arg_t, const _Allocator &__a)
promise (const promise &)=delete
promise (promise &&__rhs) noexcept
future< _Res > get_future ()
promise & operator= (const promise &)=delete
promise & operator= (promise &&__rhs) noexcept
void set_exception (exception_ptr __p)
void set_exception_at_thread_exit (exception_ptr __p)
void set_value (_Res &&__r)
void set_value (const _Res &__r)
void set_value_at_thread_exit (_Res &&__r)
void set_value_at_thread_exit (const _Res &__r)
void swap (promise &__rhs) noexcept

the =delete ones are deleted, and the move ones are noexcept β€” literal main character energy πŸ’…

🫢 Friends 🫢

one friend in the group chat:

template<typename , typename > struct _State::_Setter

πŸ¦‹ Detailed Description πŸ¦‹

the declaration, verbatim, quote mark included β€” I'm not fixing it, bestie πŸ’€:

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

πŸŽ€ Author πŸŽ€

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


and that's the page πŸ’– source/version: libstdc++; page: std::promise< _Res >(3cxx); footer date: none shown β€” periodt 🫢✨

πŸ“¦ where this page comes from