|
|
1.1 root 1: class istream;
2: class ostream;
3:
4: struct common {
5: virtual int cmp(common& oo) { return this==&oo; }
6: /* cmp performs a three way comparison if an ordering exists:
7: this==arg: return 0,
8: this<arg: return negative,
9: this>arg: return positive
10: otherwise
11: this==arg: return 0,
12: this!=arg: return non-zero
13: */
14: virtual int operator==(common& oo) { return this==&oo; }
15: virtual char* swho() { return 0; }
16: virtual int iwho() { return 0; }
17: virtual int size() { return sizeof(common); }
18: virtual ostream& write(ostream& s) { return s;}
19: virtual istream& read(istream& s) { return s; }
20: common() {}
21: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.