From Jason Turner

[ostreambuf.iterator]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpxf2720ro/{from.md → to.md} +14 -12
tmp/tmpxf2720ro/{from.md → to.md} RENAMED
@@ -1,19 +1,22 @@
1
  ### Class template `ostreambuf_iterator` <a id="ostreambuf.iterator">[[ostreambuf.iterator]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  template <class charT, class traits = char_traits<charT>>
6
- class ostreambuf_iterator :
7
- public iterator<output_iterator_tag, void, void, void, void> {
8
  public:
9
- typedef charT char_type;
10
- typedef traits traits_type;
11
- typedef basic_streambuf<charT,traits> streambuf_type;
12
- typedef basic_ostream<charT,traits> ostream_type;
 
 
 
 
 
13
 
14
- public:
15
  ostreambuf_iterator(ostream_type& s) noexcept;
16
  ostreambuf_iterator(streambuf_type* s) noexcept;
17
  ostreambuf_iterator& operator=(charT c);
18
 
19
  ostreambuf_iterator& operator*();
@@ -50,28 +53,27 @@ ostreambuf_iterator(streambuf_type* s) noexcept;
50
  *Effects:* Initializes `sbuf_` with `s`.
51
 
52
  #### `ostreambuf_iterator` operations <a id="ostreambuf.iter.ops">[[ostreambuf.iter.ops]]</a>
53
 
54
  ``` cpp
55
- ostreambuf_iterator<charT,traits>&
56
- operator=(charT c);
57
  ```
58
 
59
  *Effects:* If `failed()` yields `false`, calls `sbuf_->sputc(c)`;
60
  otherwise has no effect.
61
 
62
  *Returns:* `*this`.
63
 
64
  ``` cpp
65
- ostreambuf_iterator<charT,traits>& operator*();
66
  ```
67
 
68
  *Returns:* `*this`.
69
 
70
  ``` cpp
71
- ostreambuf_iterator<charT,traits>& operator++();
72
- ostreambuf_iterator<charT,traits>& operator++(int);
73
  ```
74
 
75
  *Returns:* `*this`.
76
 
77
  ``` cpp
 
1
  ### Class template `ostreambuf_iterator` <a id="ostreambuf.iterator">[[ostreambuf.iterator]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  template <class charT, class traits = char_traits<charT>>
6
+ class ostreambuf_iterator {
 
7
  public:
8
+ using iterator_category = output_iterator_tag;
9
+ using value_type = void;
10
+ using difference_type = void;
11
+ using pointer = void;
12
+ using reference = void;
13
+ using char_type = charT;
14
+ using traits_type = traits;
15
+ using streambuf_type = basic_streambuf<charT,traits>;
16
+ using ostream_type = basic_ostream<charT,traits>;
17
 
 
18
  ostreambuf_iterator(ostream_type& s) noexcept;
19
  ostreambuf_iterator(streambuf_type* s) noexcept;
20
  ostreambuf_iterator& operator=(charT c);
21
 
22
  ostreambuf_iterator& operator*();
 
53
  *Effects:* Initializes `sbuf_` with `s`.
54
 
55
  #### `ostreambuf_iterator` operations <a id="ostreambuf.iter.ops">[[ostreambuf.iter.ops]]</a>
56
 
57
  ``` cpp
58
+ ostreambuf_iterator& operator=(charT c);
 
59
  ```
60
 
61
  *Effects:* If `failed()` yields `false`, calls `sbuf_->sputc(c)`;
62
  otherwise has no effect.
63
 
64
  *Returns:* `*this`.
65
 
66
  ``` cpp
67
+ ostreambuf_iterator& operator*();
68
  ```
69
 
70
  *Returns:* `*this`.
71
 
72
  ``` cpp
73
+ ostreambuf_iterator& operator++();
74
+ ostreambuf_iterator& operator++(int);
75
  ```
76
 
77
  *Returns:* `*this`.
78
 
79
  ``` cpp