From Jason Turner

[re.results.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpee2eoyb8/{from.md → to.md} +8 -10
tmp/tmpee2eoyb8/{from.md → to.md} RENAMED
@@ -1,16 +1,16 @@
1
- ### General <a id="re.results.general">[[re.results.general]]</a>
2
 
3
  Class template `match_results` denotes a collection of character
4
  sequences representing the result of a regular expression match. Storage
5
  for the collection is allocated and freed as necessary by the member
6
  functions of class template `match_results`.
7
 
8
  The class template `match_results` meets the requirements of an
9
- allocator-aware container and of a sequence container
10
- [[container.requirements.general]], [[sequence.reqmts]] except that only
11
- copy assignment, move assignment, and operations defined for
12
  const-qualified sequence containers are supported and that the semantics
13
  of the comparison operator functions are different from those required
14
  for a container.
15
 
16
  A default-constructed `match_results` object has no fully established
@@ -42,16 +42,14 @@ namespace std {
42
  using value_type = sub_match<BidirectionalIterator>;
43
  using const_reference = const value_type&;
44
  using reference = value_type&;
45
  using const_iterator = implementation-defined // type of match_results::const_iterator;
46
  using iterator = const_iterator;
47
- using difference_type =
48
- typename iterator_traits<BidirectionalIterator>::difference_type;
49
- using size_type = typename allocator_traits<Allocator>::size_type;
50
  using allocator_type = Allocator;
51
- using char_type =
52
- typename iterator_traits<BidirectionalIterator>::value_type;
53
  using string_type = basic_string<char_type>;
54
 
55
  // [re.results.const], construct/copy/destroy
56
  match_results() : match_results(Allocator()) {}
57
  explicit match_results(const Allocator& a);
@@ -67,11 +65,11 @@ namespace std {
67
  bool ready() const;
68
 
69
  // [re.results.size], size
70
  size_type size() const;
71
  size_type max_size() const;
72
- [[nodiscard]] bool empty() const;
73
 
74
  // [re.results.acc], element access
75
  difference_type length(size_type sub = 0) const;
76
  difference_type position(size_type sub = 0) const;
77
  string_type str(size_type sub = 0) const;
 
1
+ #### General <a id="re.results.general">[[re.results.general]]</a>
2
 
3
  Class template `match_results` denotes a collection of character
4
  sequences representing the result of a regular expression match. Storage
5
  for the collection is allocated and freed as necessary by the member
6
  functions of class template `match_results`.
7
 
8
  The class template `match_results` meets the requirements of an
9
+ allocator-aware container [[container.alloc.reqmts]] and of a sequence
10
+ container [[container.requirements.general]], [[sequence.reqmts]] except
11
+ that only copy assignment, move assignment, and operations defined for
12
  const-qualified sequence containers are supported and that the semantics
13
  of the comparison operator functions are different from those required
14
  for a container.
15
 
16
  A default-constructed `match_results` object has no fully established
 
42
  using value_type = sub_match<BidirectionalIterator>;
43
  using const_reference = const value_type&;
44
  using reference = value_type&;
45
  using const_iterator = implementation-defined // type of match_results::const_iterator;
46
  using iterator = const_iterator;
47
+ using difference_type = iterator_traits<BidirectionalIterator>::difference_type;
48
+ using size_type = allocator_traits<Allocator>::size_type;
 
49
  using allocator_type = Allocator;
50
+ using char_type = iterator_traits<BidirectionalIterator>::value_type;
 
51
  using string_type = basic_string<char_type>;
52
 
53
  // [re.results.const], construct/copy/destroy
54
  match_results() : match_results(Allocator()) {}
55
  explicit match_results(const Allocator& a);
 
65
  bool ready() const;
66
 
67
  // [re.results.size], size
68
  size_type size() const;
69
  size_type max_size() const;
70
+ bool empty() const;
71
 
72
  // [re.results.acc], element access
73
  difference_type length(size_type sub = 0) const;
74
  difference_type position(size_type sub = 0) const;
75
  string_type str(size_type sub = 0) const;