File:  [Research Unix] / researchv10no / cmd / cfront / libstring / pair_list.c
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 "pair_list.h"

listimplement(pair)

pair&
pair::operator=(pair& pp)
{
	name = pp.name;
	count = pp.count;
	return *this;
}

ostream&
operator<< ( ostream& oo, pair &p )
{
	oo << "(" << p.name << ", " << p.count << ")";
	return  oo;
}

ostream&
myOut ( ostream& oo, pair_list &p )
{
	pair_list_iterator	pi(p);
	pair	aPair;
	while ( pi.nextX(aPair) )
		oo << aPair << NL;
	return  oo;
}

unix.superglobalmegacorp.com

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