Thread: Is there a reference for the C++ standard library

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    Is there a reference for the C++ standard library

    I guess coming off of two simesters of java I'm used to a pretty easy way of finding classes, member functions, interfaces and the like that I can use in my programs. I don't remember ever really needing it when I last worked on C++ but I'm doing a "refresher" and want to be able to look up different standard class functions and such without having to scrounge through a reference book.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You could try the Standard Template Library Programmer's Guide.
    It doesnt cover the entire standard library, but you can also supplement with material from MSDN and cppreference.com.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Maybe
    http://www.dinkumware.com/libraries_ref.html
    http://www.sgi.com/tech/stl/

    No doubt similar references exist for say boost
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Blargh, I'm spoiled by Java a bit. After starting to do some of my programming II assignments that I did in java in C++ I realize that you have to make your own algorithms for a lot of the stuff. No ArrayList and Arrays classes are the biggest blowbacks to me.

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Coolness.

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    >> No ArrayList and Arrays classes are the biggest blowbacks to me.

    ?? There are similar classes in the C++ standard library. There are also built-in algorithms.

  7. #7
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I see.

  8. #8
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    vector is the C++ equivalent of Array, although often a deque or list will be more appropriate. Take a look at the sgi site in Salem's link, including the introduction to the STL, and then peruse the Table of Contents to see all (or most) of what is available. You'll probably only find the C++ standard library lacking when you look at GUIs and graphics.

  9. #9
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    It's not a "handy" reference, but you can get the actual ANSI/ISO language standard from ANSI for $30 in PDF ($300 for a hard copy!). Oh, I think you need the C standard too, because the C++ standard refers-back to the C standard.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Using Vectors. MinGW warning
    By Viewer in forum C++ Programming
    Replies: 9
    Last Post: 03-26-2009, 03:15 PM
  3. GCC - Strange networking functions error.
    By maththeorylvr in forum Windows Programming
    Replies: 3
    Last Post: 04-05-2005, 12:00 AM
  4. C++ standard library functions
    By eno in forum C++ Programming
    Replies: 1
    Last Post: 12-16-2003, 10:15 PM
  5. Replies: 3
    Last Post: 09-04-2002, 09:01 PM