views:

147

answers:

3

Is there an HTML version of the C++ STL code? I often look something up on the web, e.g. here on sgi.com, but then I'd like to see the actual source code of the functions and classes.

I can find the STL code on my system, e.g. in /usr/include/..., but I don't have an IDE, so it's not hyperlinked, and I have to search for every file by hand (often one header actually points to another header where the code is). I would like to be able to click on some class name wherever it's mentioned, and it takes me to the definition etc. There should be some browsable HTML form of the source on the web?

+3  A: 

You can build your own with doxygen.

anon
doxygen wouldn't really work as most implementations aren't commented.
graham.reeds
Searching for STL and doxygen, I found this: http://www.aoc.nrao.edu/~tjuerges/ALMA/STL/html/main.html
but sgi stl *is* documented with doxygen
Ben
@graham doxygen doesn't need comments in order to work
anon
But to get any meaningful discourse you do. Otherwise you just get the information you get from intellisense, so why look it up at all?
graham.reeds
doxygen gives you cross referenced hypertext links and object diagrams, all without the use of meta comments - have you ever actually used it?
anon
+1  A: 

I have The C++ Standard Library (Josuttis) on my desk which I use for most of my queries.

Also the C++ Reference is an invaluable resource.

graham.reeds
+4  A: 

Have you seen the source documentation for libstdc++? libstdc++ is the implementation of the STL used with GCC. You might also like the manual for libstdc++.

Peter Neubauer