tmp/tmpld8fbfxk/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
regex_token_iterator();
|
| 5 |
```
|
| 6 |
|
|
@@ -27,20 +27,18 @@ template <size_t N>
|
|
| 27 |
const regex_type& re,
|
| 28 |
const int (&submatches)[N],
|
| 29 |
regex_constants::match_flag_type m = regex_constants::match_default);
|
| 30 |
```
|
| 31 |
|
| 32 |
-
*
|
| 33 |
`>= -1`.
|
| 34 |
|
| 35 |
*Effects:* The first constructor initializes the member `subs` to hold
|
| 36 |
-
the single value `submatch`. The second
|
| 37 |
-
member `subs` to hold a copy of the
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
\[`submatches.begin()`, `submatches.end()`) and \[`&submatches`,
|
| 41 |
-
`&submatches + N`), respectively.
|
| 42 |
|
| 43 |
Each constructor then sets `N` to 0, and `position` to
|
| 44 |
`position_iterator(a, b, re, m)`. If `position` is not an
|
| 45 |
end-of-sequence iterator the constructor sets `result` to the address of
|
| 46 |
the current match. Otherwise if any of the values stored in `subs` is
|
|
|
|
| 1 |
+
#### Constructors <a id="re.tokiter.cnstr">[[re.tokiter.cnstr]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
regex_token_iterator();
|
| 5 |
```
|
| 6 |
|
|
|
|
| 27 |
const regex_type& re,
|
| 28 |
const int (&submatches)[N],
|
| 29 |
regex_constants::match_flag_type m = regex_constants::match_default);
|
| 30 |
```
|
| 31 |
|
| 32 |
+
*Preconditions:* Each of the initialization values of `submatches` is
|
| 33 |
`>= -1`.
|
| 34 |
|
| 35 |
*Effects:* The first constructor initializes the member `subs` to hold
|
| 36 |
+
the single value `submatch`. The second, third, and fourth constructors
|
| 37 |
+
initialize the member `subs` to hold a copy of the sequence of integer
|
| 38 |
+
values pointed to by the iterator range \[`begin(submatches)`,
|
| 39 |
+
`end(submatches)`).
|
|
|
|
|
|
|
| 40 |
|
| 41 |
Each constructor then sets `N` to 0, and `position` to
|
| 42 |
`position_iterator(a, b, re, m)`. If `position` is not an
|
| 43 |
end-of-sequence iterator the constructor sets `result` to the address of
|
| 44 |
the current match. Otherwise if any of the values stored in `subs` is
|