Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

std::map -- Tango xxxxMap

Moderators: larsivi kris

Posted: 11/19/07 20:40:06

HI, I have to translate a few lines of Cpp code using std::map. I have to store about 5000 (max) key,value pairs. I guess it is preferable to choose TreeMap? (instead of HashMap?) in this case, but I am not sure about.

key is uint, val is a reference, speed matters.

What do you think ? Many thanks in advance, Bjoern

Author Message

Posted: 11/19/07 23:27:58

TreeMap is sorted, whereas HashMap is not ... fwiw