Debian Codegraph @

yo/concrete/streambuf/fdstreambuf/fdinrdbuf.cc

raw
1 #include "inok/buf.1.h"
2 #include <string>
3 #include <iostream>
4 #include <istream>
5
6 using namespace std;
7
8 // Calls uflow() repeatedly
9
10 int main(int argc)
11 {
12 fdstreambuf
13 fds(0, ios::in);
14 istream
15 is(&fds);
16
17 cout << "START\n";
18
19 cout << &fds;//is.rdbuf();
20
21 cout.clear(); // because of cerr.eof()
22
23 cout << "Using fds(0)\n";
24 }