I have a std::map that I\'m using to store values for x and y coordinates. My data is very sparse, so I don\'t want to use arrays or vectors, which would result in
std::map
Use std::pair. Better even use QHash,int> if you have many of such mappings.
QHash,int>