Learn STL

Started by
4 comments, last by Tom L 16 years, 1 month ago
I want to learn STL. Any good tutorials or ebooks through which I can learn that?
Advertisement
I think Thinking in C++ is a pretty decent e-book which attempts to follow the standard (though I'm not the one to judge how well Eckel manages to do this).
Best regards, Omid
Omid you read my mind ;-) Other (retail) books that spring to mind are Effective STL, The C++ Standard Library - A Tutorial and Reference, and The C++ Standard Library Extensions - A Tutorial and Reference. That should be enough literature to get you off the ground.

Be warned, even effective use of the STL in games can be a somewhat bad idea. You should read this article on EASTL to find out why.

The alternative to STL is to roll your own, but if you're a beginner - which you are because otherwise why else would you ask about learning stl? - then the stl is probably still faster than anything you'll write for now. Either way, learning stl is an essential tool for the C++ programmer.

Good luck!
As already stated, Thinking in C++ by Bruce Eckel is an excellent book. It was one of the first books I read on C++ and I really loved it. The second volume is specifically devoted to STL. Besides, the author has generously made the book freely available, which is a great plus if you're short on cash.

I'd advise against Effective STL at this point. This book is more geared towards experienced programmers who're willing to improve their skills rather than an introductory book on the subject.

If you need more options to look into, you might as well take a look at STL Books on Amazon and check others opinions.
Quote:Be warned, even effective use of the STL in games can be a somewhat bad idea. You should read this article on EASTL to find out why.


Go read Game Programming Gems (Volume 1) Using STL in Game Programming. I've been using STL in games and haven't had any problems with speed, bugs, or issues. And if STL doesn't have a container that I need I can make one.
you might want to read the 2 gamedev articles on STL

http://www.gamedev.net/reference/programming/features/cppstdlib1/

http://www.gamedev.net/reference/programming/features/cppstdlib2/

I picked it up by reading this and looking at the chapter on STL in 'Wrox Professional C++'

http://www.amazon.com/Professional-C-Programmer-Nicholas-Solter/dp/0764574841

personally I think its one of the better books ive read on C++

This topic is closed to new replies.

Advertisement