tmp/tmpedrijqqs/{from.md → to.md}
RENAMED
|
@@ -41,5 +41,22 @@ int compare(const string_type& s) const;
|
|
| 41 |
int compare(const value_type* s) const;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Returns:* `str().compare(s)`.
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
int compare(const value_type* s) const;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Returns:* `str().compare(s)`.
|
| 45 |
|
| 46 |
+
``` cpp
|
| 47 |
+
void swap(sub_match& s) noexcept(see below);
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
*Preconditions:* `BidirectionalIterator` meets the *Cpp17Swappable*
|
| 51 |
+
requirements [[swappable.requirements]].
|
| 52 |
+
|
| 53 |
+
*Effects:* Equivalent to:
|
| 54 |
+
|
| 55 |
+
``` cpp
|
| 56 |
+
this->pair<BidirectionalIterator, BidirectionalIterator>::swap(s);
|
| 57 |
+
std::swap(matched, s.matched);
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
*Remarks:* The exception specification is equivalent to
|
| 61 |
+
`is_nothrow_swappable_v<BidirectionalIterator>`.
|
| 62 |
+
|