All pastes #278315 Raw Edit

Something

public text v1 · immutable
·published 2006-12-13 23:52 UTC
rendered paste body
	typedef pair<int,int> intpair;
	multimap<int,int> a;
	multimap<int,int>::iterator a_iter;

	a.insert(intpair(6,1));
	a.insert(intpair(2,2));
	a.insert(intpair(0,3));
	a.insert(intpair(0,4));
	a.insert(intpair(1,5));
	a.insert(intpair(2,6));
	a.insert(intpair(4,7));
	
	for (a_iter = a.begin(); a_iter != a.end(); a_iter++)
		{cout << a_iter->first << " " << a_iter->second << "\n";}