I'm using an STL map with a struct
for a key. This is the definition of the map:
std::map<Coord2<uint8_t>, MapTile> tile_;
The definition of the struct
:
template <typename T>
struct Coord2
{
T x;
T y;
bool operator<(const Coord2<T> &coord) const { return (x < coord.x || y < coord.y); }
bool operator>(const Coord2<T> &coord) const { return (x > coord.x || y > coord.y); }
}
Will I experience issues with the map because the comparison?