tmp/tmpvnkazwf2/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
size_type size() const;
|
| 5 |
```
|
| 6 |
|
|
@@ -8,21 +8,21 @@ size_type size() const;
|
|
| 8 |
expression that was matched if `*this` represents the result of a
|
| 9 |
successful match. Otherwise returns `0`.
|
| 10 |
|
| 11 |
[*Note 1*: The state of a `match_results` object can be modified only
|
| 12 |
by passing that object to `regex_match` or `regex_search`.
|
| 13 |
-
|
| 14 |
-
those algorithms on their `match_results` arguments. — *end note*]
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
size_type max_size() const;
|
| 18 |
```
|
| 19 |
|
| 20 |
*Returns:* The maximum number of `sub_match` elements that can be stored
|
| 21 |
in `*this`.
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
-
bool empty() const;
|
| 25 |
```
|
| 26 |
|
| 27 |
*Returns:* `size() == 0`.
|
| 28 |
|
|
|
|
| 1 |
+
### Size <a id="re.results.size">[[re.results.size]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
size_type size() const;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 8 |
expression that was matched if `*this` represents the result of a
|
| 9 |
successful match. Otherwise returns `0`.
|
| 10 |
|
| 11 |
[*Note 1*: The state of a `match_results` object can be modified only
|
| 12 |
by passing that object to `regex_match` or `regex_search`.
|
| 13 |
+
Subclauses [[re.alg.match]] and [[re.alg.search]] specify the effects
|
| 14 |
+
of those algorithms on their `match_results` arguments. — *end note*]
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
size_type max_size() const;
|
| 18 |
```
|
| 19 |
|
| 20 |
*Returns:* The maximum number of `sub_match` elements that can be stored
|
| 21 |
in `*this`.
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
+
[[nodiscard]] bool empty() const;
|
| 25 |
```
|
| 26 |
|
| 27 |
*Returns:* `size() == 0`.
|
| 28 |
|