From Jason Turner

[re.results.form]

Diff to HTML by rtfpessoa

tmp/tmp7epknwfu/{from.md → to.md} RENAMED
@@ -1,17 +1,17 @@
1
- ### `match_results` formatting <a id="re.results.form">[[re.results.form]]</a>
2
 
3
  ``` cpp
4
  template<class OutputIter>
5
  OutputIter format(
6
  OutputIter out,
7
  const char_type* fmt_first, const char_type* fmt_last,
8
  regex_constants::match_flag_type flags = regex_constants::format_default) const;
9
  ```
10
 
11
- *Requires:* `ready() == true` and `OutputIter` shall satisfy the
12
- requirements for an Output Iterator ([[output.iterators]]).
13
 
14
  *Effects:* Copies the character sequence \[`fmt_first`, `fmt_last`) to
15
  OutputIter `out`. Replaces each format specifier or escape sequence in
16
  the copied range with either the character(s) it represents or the
17
  sequence of characters within `*this` to which it refers. The bitmasks
@@ -39,11 +39,11 @@ template <class ST, class SA>
39
  basic_string<char_type, ST, SA> format(
40
  const basic_string<char_type, ST, SA>& fmt,
41
  regex_constants::match_flag_type flags = regex_constants::format_default) const;
42
  ```
43
 
44
- *Requires:* `ready() == true`.
45
 
46
  *Effects:* Constructs an empty string `result` of type
47
  `basic_string<char_type, ST, SA>` and calls:
48
 
49
  ``` cpp
@@ -56,11 +56,11 @@ format(back_inserter(result), fmt, flags);
56
  string_type format(
57
  const char_type* fmt,
58
  regex_constants::match_flag_type flags = regex_constants::format_default) const;
59
  ```
60
 
61
- *Requires:* `ready() == true`.
62
 
63
  *Effects:* Constructs an empty string `result` of type `string_type` and
64
  calls:
65
 
66
  ``` cpp
 
1
+ ### Formatting <a id="re.results.form">[[re.results.form]]</a>
2
 
3
  ``` cpp
4
  template<class OutputIter>
5
  OutputIter format(
6
  OutputIter out,
7
  const char_type* fmt_first, const char_type* fmt_last,
8
  regex_constants::match_flag_type flags = regex_constants::format_default) const;
9
  ```
10
 
11
+ *Preconditions:* `ready() == true` and `OutputIter` meets the
12
+ requirements for a *Cpp17OutputIterator*[[output.iterators]].
13
 
14
  *Effects:* Copies the character sequence \[`fmt_first`, `fmt_last`) to
15
  OutputIter `out`. Replaces each format specifier or escape sequence in
16
  the copied range with either the character(s) it represents or the
17
  sequence of characters within `*this` to which it refers. The bitmasks
 
39
  basic_string<char_type, ST, SA> format(
40
  const basic_string<char_type, ST, SA>& fmt,
41
  regex_constants::match_flag_type flags = regex_constants::format_default) const;
42
  ```
43
 
44
+ *Preconditions:* `ready() == true`.
45
 
46
  *Effects:* Constructs an empty string `result` of type
47
  `basic_string<char_type, ST, SA>` and calls:
48
 
49
  ``` cpp
 
56
  string_type format(
57
  const char_type* fmt,
58
  regex_constants::match_flag_type flags = regex_constants::format_default) const;
59
  ```
60
 
61
+ *Preconditions:* `ready() == true`.
62
 
63
  *Effects:* Constructs an empty string `result` of type `string_type` and
64
  calls:
65
 
66
  ``` cpp