From Jason Turner

[re.submatch]

Diff to HTML by rtfpessoa

tmp/tmpvjp4o0qf/{from.md → to.md} RENAMED
@@ -1,21 +1,19 @@
1
- ## Class template `sub_match` <a id="re.submatch">[[re.submatch]]</a>
2
 
3
- ### General <a id="re.submatch.general">[[re.submatch.general]]</a>
4
 
5
  Class template `sub_match` denotes the sequence of characters matched by
6
  a particular marked sub-expression.
7
 
8
  ``` cpp
9
  namespace std {
10
  template<class BidirectionalIterator>
11
  class sub_match : public pair<BidirectionalIterator, BidirectionalIterator> {
12
  public:
13
- using value_type =
14
- typename iterator_traits<BidirectionalIterator>::value_type;
15
- using difference_type =
16
- typename iterator_traits<BidirectionalIterator>::difference_type;
17
  using iterator = BidirectionalIterator;
18
  using string_type = basic_string<value_type>;
19
 
20
  bool matched;
21
 
@@ -32,11 +30,11 @@ namespace std {
32
  void swap(sub_match& s) noexcept(see below);
33
  };
34
  }
35
  ```
36
 
37
- ### Members <a id="re.submatch.members">[[re.submatch.members]]</a>
38
 
39
  ``` cpp
40
  constexpr sub_match();
41
  ```
42
 
@@ -94,11 +92,11 @@ std::swap(matched, s.matched);
94
  ```
95
 
96
  *Remarks:* The exception specification is equivalent to
97
  `is_nothrow_swappable_v<BidirectionalIterator>`.
98
 
99
- ### Non-member operators <a id="re.submatch.op">[[re.submatch.op]]</a>
100
 
101
  Let `SM-CAT(I)` be
102
 
103
  ``` cpp
104
  compare_three_way_result_t<basic_string<typename iterator_traits<I>::value_type>>
 
1
+ ### Class template `sub_match` <a id="re.submatch">[[re.submatch]]</a>
2
 
3
+ #### General <a id="re.submatch.general">[[re.submatch.general]]</a>
4
 
5
  Class template `sub_match` denotes the sequence of characters matched by
6
  a particular marked sub-expression.
7
 
8
  ``` cpp
9
  namespace std {
10
  template<class BidirectionalIterator>
11
  class sub_match : public pair<BidirectionalIterator, BidirectionalIterator> {
12
  public:
13
+ using value_type = iterator_traits<BidirectionalIterator>::value_type;
14
+ using difference_type = iterator_traits<BidirectionalIterator>::difference_type;
 
 
15
  using iterator = BidirectionalIterator;
16
  using string_type = basic_string<value_type>;
17
 
18
  bool matched;
19
 
 
30
  void swap(sub_match& s) noexcept(see below);
31
  };
32
  }
33
  ```
34
 
35
+ #### Members <a id="re.submatch.members">[[re.submatch.members]]</a>
36
 
37
  ``` cpp
38
  constexpr sub_match();
39
  ```
40
 
 
92
  ```
93
 
94
  *Remarks:* The exception specification is equivalent to
95
  `is_nothrow_swappable_v<BidirectionalIterator>`.
96
 
97
+ #### Non-member operators <a id="re.submatch.op">[[re.submatch.op]]</a>
98
 
99
  Let `SM-CAT(I)` be
100
 
101
  ``` cpp
102
  compare_three_way_result_t<basic_string<typename iterator_traits<I>::value_type>>