Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;   
    }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #map #vector #struct #error
ADD COMMENT
Topic
Name
7+6 =