Yes, for this project i needed only unique items to be added to std::map.
http://www.sgi.com/tech/stl/Map.html

It takes a custom sort routine and thanks to this i get only unique items.
XE TDictionary is also fast enough, but it isn't able to get me same results as std:map.
Probably because it doesn't handle collisions so well or something..

I don't know. I even tried Decal and other std:map like things for XE and none of them were able to produce same results.

Thas why i asked if it's possible to pass him some my own sort routine. So it handles collisions better and more precicely or something like that.


Atm im just passing my data to DLL from Delphi and DLL uses std::map to make the processing of data.
Works fine, but i wish i could do it without DLL's. Too bad, that Delphi is not able to link C++ .obj files, specially with STL code in them.



Quote Originally Posted by Lifepower View Post
TDictionary uses hash table for storing key/value parameters. I don't know how or why would you need to sort hashed entries unless there are collisions. There is also ToArray function, which returns TArray, the last one does support custom sorting routine.

P.S. In my experience with TDictionary and XE 3, it is surprisingly fast, even with Unicode strings. I would definitely recommend it.