std::experi...al::promise)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

okay bestie, this is from the C++ Standard Libary manual, and the header title is chopped up as std::experi...al::promise)(3) β€” yes, it’s giving β€œabbreviated by the terminal,” don’t ask πŸ’€

🌸 NAME 🌸

std::experimental::swap(std::experimental::promise) - std::experimental::swap(std::experimental::promise)


πŸ¦‹ Synopsis πŸ¦‹

here’s the whole signature, copied exactly, no cap:

template< class R >

void swap( std::experimental::promise<R> &lhs,

           std::experimental::promise<R> &rhs ) noexcept;

Overloads the swap algorithm for std::experimental::promise. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).


πŸŽ€ Parameters πŸŽ€

  • lhs, rhs β€” promises whose states to swap

✨ Return value ✨

(none)


πŸ¦„ Example πŸ¦„

This section is incomplete

Reason: no example

not me reading an example section with zero examples in it 😭

πŸ‘‘ See also πŸ‘‘

  • swap swaps two promise objects (public member function of std::promise<R>)

πŸ“ Category πŸ“

  • * Todo no example

mwah πŸ’‹ this page came from http://cppreference.com, version/date 2024.06.10 β€” catch u later bestie 🫢

πŸ“¦ where this page comes from