Sign in to follow this  
Kazade

Anymore of STL that I should be aware of?

Recommended Posts

Hi everyone, Over the last few months ive been trying to learn how to use STL properly. I've been using vector and string for a while now and i've been trying to learn about the most frequently used classes. At the moment I have read up on the following: vector string list slist deque map iterators Are there any other elements of the STL that are used very frequently and that are vital for me to learn? Luke.

Share this post


Link to post
Share on other sites
Ok, that covers the containers (althought slist isn't part of the standard library, it's an extension). You should prbably make sure you understand how to use custom allocators with them.

Here a list of other things I find useful in the standard library:

  • auto_ptr (in <memory>)
  • the sorting/searching algorithms (<algorithm>)
  • the exception classes (<stdexcept>) - it's useful to have all your exception classes convertable to std::exception&

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this