From Jason Turner

[istreambuf.iterator.proxy]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpdh__hf_m/{from.md → to.md} +24 -0
tmp/tmpdh__hf_m/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Class template `istreambuf_iterator::proxy` <a id="istreambuf.iterator.proxy">[[istreambuf.iterator.proxy]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ template <class charT, class traits = char_traits<charT>>
6
+ class istreambuf_iterator<charT, traits>::proxy { // exposition only
7
+ charT keep_;
8
+ basic_streambuf<charT,traits>* sbuf_;
9
+ proxy(charT c, basic_streambuf<charT,traits>* sbuf)
10
+ : keep_(c), sbuf_(sbuf) { }
11
+ public:
12
+ charT operator*() { return keep_; }
13
+ };
14
+ }
15
+ ```
16
+
17
+ Class `istreambuf_iterator<charT,traits>::proxy` is for exposition only.
18
+ An implementation is permitted to provide equivalent functionality
19
+ without providing a class with this name. Class
20
+ `istreambuf_iterator<charT, traits>::proxy` provides a temporary
21
+ placeholder as the return value of the post-increment operator
22
+ (`operator++`). It keeps the character pointed to by the previous value
23
+ of the iterator for some possible future access to get the character.
24
+