std::basic_regex::swap(3)

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

✨ NAME ✨

Okay so this is the std::basic_regex::swap(3) page from the C++ Standard Libary β€” yes, that’s the manual name right there, typo and all, and we’re keeping every detail 🫢.

std::basic_regex::swap β€” std::basic_regex::swap (the manual is not big on extra words here, and honestly? valid πŸ’–).


πŸ¦‹ Synopsis πŸ¦‹

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

Exchanges the contents of two regular expressions. Slay. That’s the whole vibe ✨.


πŸ’– Parameters πŸ’–

  • other β€” the regular expression to swap with πŸŽ€

🌸 Return value 🌸

(none) β€” that’s literally the whole return value section, bestie 😭.


πŸŽ€ Example πŸŽ€

The manual is super direct here:

This section is incomplete
Reason: no example

Not me getting an incomplete example section πŸ’€. It’s giving β€œwe’ll circle back” energy, but we’re preserving it exactly.


πŸ‘‘ See also πŸ‘‘

  • std::swap(std::basic_regex) β€” specializes the std::swap algorithm; it’s a function template, and this one’s tagged (C++11) ✨.

πŸ¦‹ Category πŸ¦‹

  • Todo no example β€” that’s the category label, and yeah, it’s giving β€œwe know, bestie” πŸ’€.

Made with love from http://cppreference.com, version 2024.06.10, for std::basic_regex::swap(3) 🫢✨

πŸ“¦ where this page comes from