std::experi...al::promise)(3)
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 π
swapswaps two promise objects (public member function ofstd::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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms