From Jason Turner

[ostreambuf.iterator.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpg362hn5o/{from.md → to.md} +35 -0
tmp/tmpg362hn5o/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### General <a id="ostreambuf.iterator.general">[[ostreambuf.iterator.general]]</a>
2
+
3
+ The class template `ostreambuf_iterator` writes successive *characters*
4
+ onto the output stream from which it was constructed.
5
+
6
+ ``` cpp
7
+ namespace std {
8
+ template<class charT, class traits = char_traits<charT>>
9
+ class ostreambuf_iterator {
10
+ public:
11
+ using iterator_category = output_iterator_tag;
12
+ using value_type = void;
13
+ using difference_type = ptrdiff_t;
14
+ using pointer = void;
15
+ using reference = void;
16
+ using char_type = charT;
17
+ using traits_type = traits;
18
+ using streambuf_type = basic_streambuf<charT,traits>;
19
+ using ostream_type = basic_ostream<charT,traits>;
20
+
21
+ ostreambuf_iterator(ostream_type& s) noexcept;
22
+ ostreambuf_iterator(streambuf_type* s) noexcept;
23
+ ostreambuf_iterator& operator=(charT c);
24
+
25
+ ostreambuf_iterator& operator*();
26
+ ostreambuf_iterator& operator++();
27
+ ostreambuf_iterator& operator++(int);
28
+ bool failed() const noexcept;
29
+
30
+ private:
31
+ streambuf_type* sbuf_; // exposition only
32
+ };
33
+ }
34
+ ```
35
+