Deck.cpp
//hand less than comparator (sorts by lexigraphical order with lowest card then next lowest, and so on)

hand less than comparator (sorts by lexigraphical order with lowest card then next lowest, and so on)
hand less than comparator ( sorts by lexigraphical order with lowest card then next lowest and so on )
bool Hand::operator< (const Hand & other) const
{
	auto it1 = cards.begin();
	auto it2 = other.cards.begin();
	while (it1 < cards.end() && it2 < other.cards.end())
	{
		if ((*it1).cardRank == (*it2).cardRank && (*it1).cardSuit == (*it2).cardSuit)
		{
			++it1;
			++it2;
		}
		else if (*it1 < *it2)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (size() >= other.size())
	{
		return false;
	}
	return true;
}
bool Hand :: operator < ( const Hand & other ) const { auto it1 = cards . begin ( ) ; auto it2 = other . cards . begin ( ) ; while ( it1 < cards . end ( ) && it2 < other . cards . end ( ) ) { if ( ( * it1 ) . cardRank == ( * it2 ) . cardRank && ( * it1 ) . cardSuit == ( * it2 ) . cardSuit ) { ++ it1 ; ++ it2 ; } else if ( * it1 < * it2 ) { return true ; } else { return false ; } } if ( size ( ) >= other . size ( ) ) { return false ; } return true ; }
hand less than comparator (sorts by lexigraphical order with lowest card then next lowest, and so on)
hand less than comparator ( sorts by lexigraphical order with lowest card then next lowest and so on )
//iterate through all cards checking for order
 //if cards are equal, then move on to next card
 //if the first card is less than the second, then the first hand is less than the second
 //if the second card is less than the first, then the second hand is less than the first
 //if the size of the first hand is greater than (or equal to) that of the second then it comes second
 //if all cards are equal and the first hand is smaller than the second then it comes first
