Quote:Original post by d000hg In you guys' experience then, list is crap? Vector is better, and map too?
|
You can't say list is just crap in general, it depends on the operations you are going to do in some contexts list will be the best for what you are doing in other contexts it will be some other container.
Quote:Original post by d000hg I don't have docs for hash_map on VS6.
|
I seriously suggest using a different or much newer MS C++ compiler (like VC++ 7.1 or 8.0), VC++ 6.0 has poor standard C++ compilancey and a not so good implementation of STL. VC++ 7.1 is free to download and you can even hookit up to VC++ 6.0 IDE if you want. Remember
hash_map is standard library extension so in VC++ 7.1
std::hash_map is deprecated for
stdext::hash_map the docs for
hash_map is
here.
Quote:Original post by d000hg lower_bound is faster than iterating through a container myself to find where to do an insert, or I cn use push_heap in a similar fashion?
|
I don't have any personal exprinice of A* as some people have been mentioned it's probably best to go with a binary heap and use standard library heap operations which means using either
std::vector or
std::deque or C-style array instead.
[Edited by - snk_kid on September 26, 2005 9:24:11 AM]