From Jason Turner

[re.results]

Diff to HTML by rtfpessoa

tmp/tmp9sa4gxqj/{from.md → to.md} RENAMED
@@ -29,16 +29,16 @@ formed that match. Otherwise `matched` is false, and members `first` and
29
  participate in a regular expression match need not be distinct.
30
 
31
  ``` cpp
32
  namespace std {
33
  template <class BidirectionalIterator,
34
- class Allocator = allocator<sub_match<BidirectionalIterator> >
35
  class match_results {
36
  public:
37
  typedef sub_match<BidirectionalIterator> value_type;
38
  typedef const value_type& const_reference;
39
- typedef const_reference reference;
40
  typedef {implementation-defined} const_iterator;
41
  typedef const_iterator iterator;
42
  typedef typename
43
  iterator_traits<BidirectionalIterator>::difference_type difference_type;
44
  typedef typename allocator_traits<Allocator>::size_type size_type;
@@ -136,11 +136,11 @@ match_results(match_results&& m) noexcept;
136
  *Effects:*  Move-constructs an object of class `match_results` from `m`
137
  satisfying the same postconditions as Table  [[tab:re:results:assign]].
138
  Additionally, the stored `Allocator` value is move constructed from
139
  `m.get_allocator()`.
140
 
141
- *Throws:* Nothing if the allocator’s move constructor throws nothing.
142
 
143
  ``` cpp
144
  match_results& operator=(const match_results& m);
145
  ```
146
 
@@ -364,11 +364,11 @@ void swap(match_results& that);
364
 
365
  `*this` contains the sequence of matched sub-expressions that were in
366
  `that`, `that` contains the sequence of matched sub-expressions that
367
  were in `*this`.
368
 
369
- *Complexity:* constant time.
370
 
371
  ``` cpp
372
  template <class BidirectionalIterator, class Allocator>
373
  void swap(match_results<BidirectionalIterator, Allocator>& m1,
374
  match_results<BidirectionalIterator, Allocator>& m2);
 
29
  participate in a regular expression match need not be distinct.
30
 
31
  ``` cpp
32
  namespace std {
33
  template <class BidirectionalIterator,
34
+ class Allocator = allocator<sub_match<BidirectionalIterator>>>
35
  class match_results {
36
  public:
37
  typedef sub_match<BidirectionalIterator> value_type;
38
  typedef const value_type& const_reference;
39
+ typedef value_type& reference;
40
  typedef {implementation-defined} const_iterator;
41
  typedef const_iterator iterator;
42
  typedef typename
43
  iterator_traits<BidirectionalIterator>::difference_type difference_type;
44
  typedef typename allocator_traits<Allocator>::size_type size_type;
 
136
  *Effects:*  Move-constructs an object of class `match_results` from `m`
137
  satisfying the same postconditions as Table  [[tab:re:results:assign]].
138
  Additionally, the stored `Allocator` value is move constructed from
139
  `m.get_allocator()`.
140
 
141
+ *Throws:* Nothing.
142
 
143
  ``` cpp
144
  match_results& operator=(const match_results& m);
145
  ```
146
 
 
364
 
365
  `*this` contains the sequence of matched sub-expressions that were in
366
  `that`, `that` contains the sequence of matched sub-expressions that
367
  were in `*this`.
368
 
369
+ *Complexity:* Constant time.
370
 
371
  ``` cpp
372
  template <class BidirectionalIterator, class Allocator>
373
  void swap(match_results<BidirectionalIterator, Allocator>& m1,
374
  match_results<BidirectionalIterator, Allocator>& m2);