std::swap(s...tch_results)(3)
π std::swap(s...tch_results)(3) β C++ Standard Libary, bestie π
okay so we're on the std::swap(s...tch_results)(3) page and the manual name is C++ Standard Libary (yes, that's how it's spelled here, no cap). This one is all about specializing std::swap for std::match_results, and it's lowkey a tiny baddie. π
β¨ NAME β¨
std::swap(std::match_results) - std::swap(std::match_results) β literally that. That's the name, bestie. π
β¨ Synopsis β¨
Defined in header <regex>
template< class BidirIt, class Alloc >
void swap( match_results<BidirIt,Alloc>& x1, (since
C++11)
match_results<BidirIt,Alloc>& x2 ) noexcept;
So this specializes the std::swap algorithm for std::match_results. It exchanges the contents of x1 with those of x2. Effectively calls x1.swap(x2). Periodt. π
π Parameters π
x1,x2β thematch_resultsobjects whose contents will be swapped π«Ά
π¦ Type requirements π¦
BidirItmust meet the requirements ofLegacyBidirectionalIterator.Allocmust meet the requirements ofAllocator.
πΈ Return value πΈ
(none) β literally nothing, not even a crumb. π
π Example π
This section is incomplete. Reason: no example. π
π See also π
swapβ swaps the contents (public member function). Slay.
π₯ Category π₯
- Todo no example
xoxo, your Unix bestie π β source/version goin' out to cppreference.com, dated 2024.06.10. π
π¦ 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