Why is it that if you do not initialize a std::vector to 0 in the constructor that the size() function returns a huge number? It's obviously just returning unintialized data but I'm not sure why.
std::map and other containers do not seem to suffer this. You can create a map and never insert anything and size() returns 0. Try this with vector and you will get some huge number for size. It's as if the implementors of the STL for Visual Studio did not init the size variable in the constructor for vector.
Is this standard behavior for the STL or is this a bug in the MS version of STL?