I want to implement a container to store values in a 'pair' style.
The structure are going to be something like a spreadsheet, some cells have data and others not. The 'pairs' are row and col.
In example, I'm going to have values
0,1 0,2 0,5 (0,3 0,4 are empty and I dont want to reserve space for it)
1,7 1,9 ... (1,0 to 1.6 empty)
0,1 has a value
0,2 has a value
0,3 0,4 has no value
1.7 has a value
etc.
What container can I use ? Map, a combined ?
A map with float index (So, can be an idea to convert row col to row.col?)
I want to deal with millions of points...
You could have a std::map<Coordinate, Value> and overload booloperator >(Coordinate, Coordinate) (or was it <..?) so that it first compares rows and if they are equal, compares columns.