Sign in to follow this  
abhi_shekv

Learn STL

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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++

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this