std::match_results::swap(3)

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

πŸ’– std::match_results::swap(3) πŸ’–

okay bestie, this one comes from the C++ Standard Libary manual, and it’s giving β€œshort, sweet, and here to swap some shared states.” ✨

🌸 NAME 🌸

std::match_results::swap - std::match_results::swap

✨ Synopsis ✨

void swap( match_results& other ) noexcept;  (since C++11)

It exchanges the shared states of two match_results objects. That’s the whole plot, no cap. πŸ’…

🌈 Parameters 🌈

  • other β€” the match_results to swap with. Like, the other one you’re swapping with, obviously 🫢

πŸŽ€ Return value πŸŽ€

(none) β€” nothing comes back, nada, zero, periodt. 😌

πŸ¦‹ Example πŸ¦‹

This section is incomplete Reason: no example

tragic, ik 😭 but that’s literally what it says.

πŸ”₯ See also πŸ”₯

  • std::swap(std::match_results) β€” specializes the std::swap algorithm. (C++11) (function template) πŸ‘‘

πŸ’€ Category πŸ’€

  • Todo no example

mwah πŸ’‹ β€” source/version: http://cppreference.com, dated 2024.06.10. slay and goodbye πŸŽ€

πŸ“¦ where this page comes from