view the source code to std library

Hey, I'm new to cpp and I was wondering if there is a way that I can view the source code to the std library classes? Like for instance, I can look in iostream.h and see all the header declarations, but those are just declarations to functions and such. Is there a way to see the actual code in those functions? I would just like to see how the std library works and looks at some coding practices.

thanks in advance!
You can take a look at the glibstdc++ in its source distribution or the svn-repositories.
http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/src/
http://gcc.gnu.org/mirrors.html

Edit: As for gnus libstdc++, many functions seem to be defined in the headers already.
Last edited on
thanks!
Topic archived. No new replies allowed.