Wednesday, April 6, 2011

Is there an HTML-version of the STL code?

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?

From stackoverflow
  • You can build your own with doxygen.

    graham.reeds : doxygen wouldn't really work as most implementations aren't commented.
    : Searching for STL and doxygen, I found this: http://www.aoc.nrao.edu/~tjuerges/ALMA/STL/html/main.html
    Ben : but sgi stl *is* documented with doxygen
    anon : @graham doxygen doesn't need comments in order to work
    graham.reeds : 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?
    anon : doxygen gives you cross referenced hypertext links and object diagrams, all without the use of meta comments - have you ever actually used it?
  • 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.

  • 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++.

0 comments:

Post a Comment