Providing less than operator for one element of a pair
- by Koszalek Opalek
What would be the most elegant way too fix the following code:
#include <vector>
#include <map>
#include <set>
using namespace std;
typedef map< int, int > row_t;
typedef vector< row_t > board_t;
typedef row_t::iterator area_t;
bool operator< ( area_t const& a, area_t const& b ) {
return( a->first…