J
jacob navia
Hi C++ wizards
I am studying the deque container, and I am wondering what is the use of
some member functions.
Specifically the "swap" member. I understand what it does, but I fail to
see the utility. Why it is important to have this "swap" member? What
could be the possible uses of swapping two deque containers?
In a more general fashion, is there a document or book that would
explain WHY the STL was designed like it is? I mean a book/document that
would try to answer questions like this.
I am using "The C++ STL" by Plauger, Stepanov, Lee and Musser, but it
just doesn't explain anything.
Thanks in advance for your time.
jacob
I am studying the deque container, and I am wondering what is the use of
some member functions.
Specifically the "swap" member. I understand what it does, but I fail to
see the utility. Why it is important to have this "swap" member? What
could be the possible uses of swapping two deque containers?
In a more general fashion, is there a document or book that would
explain WHY the STL was designed like it is? I mean a book/document that
would try to answer questions like this.
I am using "The C++ STL" by Plauger, Stepanov, Lee and Musser, but it
just doesn't explain anything.
Thanks in advance for your time.
jacob