From Jason Turner

[istreambuf.iterator.ops]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmps9nl0od1/{from.md → to.md} +47 -0
tmp/tmps9nl0od1/{from.md → to.md} RENAMED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### `istreambuf_iterator` operations <a id="istreambuf.iterator.ops">[[istreambuf.iterator.ops]]</a>
2
+
3
+ ``` cpp
4
+ charT operator*() const
5
+ ```
6
+
7
+ *Returns:* The character obtained via the `streambuf` member
8
+ `sbuf_->sgetc()`.
9
+
10
+ ``` cpp
11
+ istreambuf_iterator& operator++();
12
+ ```
13
+
14
+ *Effects:* As if by `sbuf_->sbumpc()`.
15
+
16
+ *Returns:* `*this`.
17
+
18
+ ``` cpp
19
+ proxy operator++(int);
20
+ ```
21
+
22
+ *Returns:* `proxy(sbuf_->sbumpc(), sbuf_)`.
23
+
24
+ ``` cpp
25
+ bool equal(const istreambuf_iterator& b) const;
26
+ ```
27
+
28
+ *Returns:* `true` if and only if both iterators are at end-of-stream, or
29
+ neither is at end-of-stream, regardless of what `streambuf` object they
30
+ use.
31
+
32
+ ``` cpp
33
+ template <class charT, class traits>
34
+ bool operator==(const istreambuf_iterator<charT,traits>& a,
35
+ const istreambuf_iterator<charT,traits>& b);
36
+ ```
37
+
38
+ *Returns:* `a.equal(b)`.
39
+
40
+ ``` cpp
41
+ template <class charT, class traits>
42
+ bool operator!=(const istreambuf_iterator<charT,traits>& a,
43
+ const istreambuf_iterator<charT,traits>& b);
44
+ ```
45
+
46
+ *Returns:* `!a.equal(b)`.
47
+