I guess it just doesn't matter than but I've always used the list implementation.
I guess it just doesn't matter than but I've always used the list implementation.
Last edited by whiteflags; 10-16-2010 at 07:29 PM. Reason: GAAH I don't know anymore
In fact, the std::stack adapter uses back(), push_back() and pop_back(). I believe the reason why std::deque is the default has to do with the fact that std::vector does not reduce its capacity automatically, so you have to use the swap with empty container trick.Originally Posted by Elysia
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)