Files
2025-10-25 03:02:53 +03:00

1.3 KiB

[re.results.swap]

28 Text processing library [text]

28.6 Regular expressions library [re]

28.6.9 Class template match_results [re.results]

28.6.9.8 Swap [re.results.swap]

🔗

void swap(match_results& that);

1

#

Effects: Swaps the contents of the two sequences.

2

#

Postconditions: *this contains the sequence of matched sub-expressions that were in that, that contains the sequence of matched sub-expressions that were in *this.

3

#

Complexity: Constant time.

🔗

template<class BidirectionalIterator, class Allocator> void swap(match_results<BidirectionalIterator, Allocator>& m1, match_results<BidirectionalIterator, Allocator>& m2);

4

#

Effects: As if by m1.swap(m2).