tags:

views:

550

answers:

5

Possible Duplicate:
Good book for learning the C++ standard template library?

I am having very less knowledge on templates and STL. So looking for a good for STL.

+21  A: 

Start with The C++ Standard Library - A Tutorial and Reference.

Then read Effective STL by Scott Meyers.

As for templates, this is a really good book (especially part 1): C++ Templates - The Complete Guide.

navigator
Once you have learned STL (++ to the suggested books here), the SGI STL reference at http://www.sgi.com/tech/stl/ is an amazing resource. I have it on my bookmark toolbar and use it frequently. (A word of warning: there are some SGI-specific extensions in there, but not too many.)
leander
Seconded on the Meyers book....the Effective C++ books are a worthwhile investment as well, although not specifically template or STL related.
Nick Bastin
+2  A: 

If you want a good book for learning templates in general, I would recommend:

C++ Templates: The Complete Guide

If you then become a complete addict, you can move on to:

C++ Template Metaprogramming

(and perhaps look into counseling for your mental issues.. :-))

If you just want a book on STL, there are many, but the best I've found is:

The C++ Standard Library: A Tutorial and Reference

Nick Bastin
Um, I think given the questions implied knowledge level the first two books are way way over his head.
Matt Price
@Matt: That may be true. The first book is actually very approachable - the 2nd is for pretty much insane people. It's hard to use C++ well while completely avoiding writing your own templates, so the first book is a good investment.
Nick Bastin
+2  A: 

There is also "Generic Programming and the STL" by Matt Austern.

AProgrammer
Old and out of date, I'm afraid.
anon
While it may be old, I think the fundamental concepts in the beginning are still worth reading.
Matt Price
+1  A: 

Not a book, but SGI makes for a rather useful reference. Once you've got a feel for the STL, it may be helpful when you need to look some commands up or whatever.

Brian
Be aware that the SGI site documents their library, not the C++ Standard Library.
anon
A: 

I'd recommend www.sgi.com for complete stl reference or : http://www.yolinux.com/TUTORIALS/LinuxTutorialC++STL.html

Maciek