I guess it just doesn't matter than but I've always used the list implementation.
This is a discussion on Thoughts on return type from template container classes. within the C++ Programming forums, part of the General Programming Boards category; 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
Originally Posted by phantomotap
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
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^