File:  [Research Unix] / researchv10no / cmd / cfront / libstring / pair_list.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include "String.h"
#include "list.h"
#define NL "\n"

struct pair {
	int	count;
	String	name;
		pair() : name() {}
		pair(String s) : name(s), count(1) {}
		pair(String s, int i) : name(s), count(i) {}
		pair(pair& pp) : name(pp.name), count(pp.count) {}
		~pair() {}
	bit	operator==(pair& pp) { return count == pp.count &&
			name == pp.name; }
	bit	operator!=(pair& pp) { return !(*this == pp); }
	pair&	operator=(pair& pp);
};

ostream&	operator<< ( ostream& oo, pair &p );

listdeclare(pair)

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.