std::stop_token::swap(3)

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

✨ std::stop_token::swap ✨

okay so this is the std::stop_token::swap(3) page, from the C++ Standard Libary manual πŸ’– (yes bestie, we folded the manual name in up here instead of copying the header line, periodt).

🌸 NAME 🌸

std::stop_token::swap - std::stop_token::swap

not the NAME section being literally the same thing twice 😭 it’s giving β€œI said what I said,” and honestly? iconic.

πŸ¦‹ Synopsis πŸ¦‹

void swap( std::stop_token& other ) noexcept;  (since C++20)

What it does: it exchanges the associated stop-state of *this and other ✨.

πŸŽ€ Parameters πŸŽ€

  • other β€” stop_token to exchange the contents with 🫢

πŸ’… Return value πŸ’…

(none) β€” literally nothing, bestie. no return value, no drama 🌈.


source/version: http://cppreference.com; date: 2024.06.10; page: std::stop_token::swap(3) β€” bye bestie, love u, slay πŸ’œ

πŸ“¦ where this page comes from