A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../regex/match_results/swap2.html below:

std::swap(std::match_results) - cppreference.com

template< class BidirIt, class Alloc >

void swap( match_results<BidirIt,Alloc>& x1,

           match_results<BidirIt,Alloc>& x2 ) noexcept;
(since C++11)

Specializes the std::swap algorithm for std::match_results. Exchanges the contents of x1 with those of x2. Effectively calls x1.swap(x2).

[edit] Parameters x1, x2 - the match_results objects whose contents will be swapped Type requirements -BidirIt must meet the requirements of LegacyBidirectionalIterator. -Alloc must meet the requirements of Allocator. [edit] Return value

(none)

[edit] Example [edit] See also swaps the contents
(public member function) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4