Answers for "map of vector of struct error"

C++
1

map of vector of struct error

struct Coordinate{
    int x, y;

    constexpr bool operator<(const Coordinate & rhs) const
    {
        return x < rhs.x && y < rhs.y;   
    }
};
Posted by: Guest on March-23-2022

Browse Popular Code Answers by Language