From Jason Turner

[re.results.swap]

Diff to HTML by rtfpessoa

tmp/tmplykmgt25/{from.md → to.md} RENAMED
@@ -4,19 +4,19 @@
4
  void swap(match_results& that);
5
  ```
6
 
7
  *Effects:* Swaps the contents of the two sequences.
8
 
9
- `*this` contains the sequence of matched sub-expressions that were in
10
- `that`, `that` contains the sequence of matched sub-expressions that
11
- were in `*this`.
12
 
13
  *Complexity:* Constant time.
14
 
15
  ``` cpp
16
  template <class BidirectionalIterator, class Allocator>
17
  void swap(match_results<BidirectionalIterator, Allocator>& m1,
18
  match_results<BidirectionalIterator, Allocator>& m2);
19
  ```
20
 
21
- *Effects:* `m1.swap(m2)`.
22
 
 
4
  void swap(match_results& that);
5
  ```
6
 
7
  *Effects:* Swaps the contents of the two sequences.
8
 
9
+ *Postconditions:* `*this` contains the sequence of matched
10
+ sub-expressions that were in `that`, `that` contains the sequence of
11
+ matched sub-expressions that were in `*this`.
12
 
13
  *Complexity:* Constant time.
14
 
15
  ``` cpp
16
  template <class BidirectionalIterator, class Allocator>
17
  void swap(match_results<BidirectionalIterator, Allocator>& m1,
18
  match_results<BidirectionalIterator, Allocator>& m2);
19
  ```
20
 
21
+ *Effects:* As if by `m1.swap(m2)`.
22