From Jason Turner

[re.submatch.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpj_2yudxy/{from.md → to.md} +34 -0
tmp/tmpj_2yudxy/{from.md → to.md} RENAMED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### General <a id="re.submatch.general">[[re.submatch.general]]</a>
2
+
3
+ Class template `sub_match` denotes the sequence of characters matched by
4
+ a particular marked sub-expression.
5
+
6
+ ``` cpp
7
+ namespace std {
8
+ template<class BidirectionalIterator>
9
+ class sub_match : public pair<BidirectionalIterator, BidirectionalIterator> {
10
+ public:
11
+ using value_type =
12
+ typename iterator_traits<BidirectionalIterator>::value_type;
13
+ using difference_type =
14
+ typename iterator_traits<BidirectionalIterator>::difference_type;
15
+ using iterator = BidirectionalIterator;
16
+ using string_type = basic_string<value_type>;
17
+
18
+ bool matched;
19
+
20
+ constexpr sub_match();
21
+
22
+ difference_type length() const;
23
+ operator string_type() const;
24
+ string_type str() const;
25
+
26
+ int compare(const sub_match& s) const;
27
+ int compare(const string_type& s) const;
28
+ int compare(const value_type* s) const;
29
+
30
+ void swap(sub_match& s) noexcept(see below);
31
+ };
32
+ }
33
+ ```
34
+