#ifndef _PAIR_H_ #define _PAIR_H_ /** * Class that stores a pair of items. * Both items are made public. */ template class Pair { public: Pair( const Type1 & t1 = Type1( ), const Type2 & t2 = Type2( ) ) : first( t1 ), second( t2 ) { } Type1 first; Type2 second; bool operator==( const Pair & rhs ) const { return first == rhs.first; } }; #endif