STL and protection

What kind of protection does the STL provide in a multi-threaded environment? Let's say I am iterating a List and dereferencing the iterator to access, say, a class that it points to. Can another thread erase that item while using the iterator? Do I need to provide my own protection in terms of a mutex or semaphore for my List?
You need to add your own protection in multithreading environments. STL containers are not designed to be thread safe on their own.
Topic archived. No new replies allowed.