Handout 27

Thread Safety in the Standard C++ Library


Container Classes (vector, deque, list, queue, stack , priority_queue, valarray, map, multimap, set, multiset, basic_string, bitset) and complex

For reads to the same object, the object is thread safe for reading:

For reads to different objects of the same class, the object is thread safe for reading:


For writes to different objects of the same class, the object is thread safe for writing: