Debian Codegraph @

yo/concrete/streambuf/fdstreambuf/fdinputback.cc

raw
1 #include "inok/buf.1.h"
2 #include <string>
3 #include <iostream>
4 #include <istream>
5
6 using namespace std;
7
8 int main(int argc)
9 {
10 fdstreambuf
11 fds(0, ios::in);
12 istream
13 is(&fds);
14
15 cout << "START\n";
16
17 char
18 c;
19
20 is.get(c);
21
22 cout << c << '\n';
23
24 is.unget();
25
26 cout << is.rdbuf();
27 }