Annotation of researchv10no/cmd/cfront/libstring/pair_list.h, revision 1.1.1.1

1.1       root        1: #include "String.h"
                      2: #include "list.h"
                      3: #define NL "\n"
                      4: 
                      5: struct pair {
                      6:        int     count;
                      7:        String  name;
                      8:                pair() : name() {}
                      9:                pair(String s) : name(s), count(1) {}
                     10:                pair(String s, int i) : name(s), count(i) {}
                     11:                pair(pair& pp) : name(pp.name), count(pp.count) {}
                     12:                ~pair() {}
                     13:        bit     operator==(pair& pp) { return count == pp.count &&
                     14:                        name == pp.name; }
                     15:        bit     operator!=(pair& pp) { return !(*this == pp); }
                     16:        pair&   operator=(pair& pp);
                     17: };
                     18: 
                     19: ostream&       operator<< ( ostream& oo, pair &p );
                     20: 
                     21: listdeclare(pair)
                     22: 
                     23: ostream&       myOut ( ostream& oo, pair_list &p );

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.