std::swap(s...basic_regex)(3)
πΈ NAME πΈ
okay so this page is std::swap(s...basic_regex)(3) from the C++ Standard Libary manual β yes bestie, that manual name is literally C++ Standard Libary, and the main character is std::swap(std::basic_regex). Like, the name and the description are both std::swap(std::basic_regex) β it's giving βI said what I saidβ energy. π
β¨
β¨ Synopsis β¨
here's the signature, no cap:
template< class CharT, class Traits >
void swap( basic_regex<CharT, Traits>& lhs, basic_regex<CharT,
(since C++11)
Traits>& rhs ) noexcept;
and yes, that (since C++11) note is part of the synopsis vibe β it's not me adding lore. π«Ά
It overloads the std::swap algorithm for std::basic_regex. It exchanges the state of lhs with that of rhs, and effectively calls lhs.swap(rhs). Slay. π₯
π Parameters π
lhs,rhsβ regular expressions to swap. That's the whole vibe: two regex besties switching states. π
π Return value π
(none) β literally no return value, bestie. It's a void moment. π
π¦ Example π¦
This section is incomplete Reason: no example
Translation: the example is MIA. Not me opening this section and finding unfinished homework π. But hey, at least it's honest.
π See also π
swapβ swaps the contents (public member function). Iconic behavior, same word, member-function energy. π
π·οΈ Category π·οΈ
* Todo no example
okay bye bestie ππ«Ά β source is http://cppreference.com, date/version is 2024.06.10, and the page is std::swap(s...basic_regex)(3). mwah πβ¨
π¦ 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