129
edits
Changes
m
STL iterators are supported for serial traversal. Should you use an iterator in parallel, you must be cautious to not change the data while a thread is going through the iterator.
→List of STL Functions:
'''Algorithms'''
are supported by STL for various algorithms such as sorting, searching and accumulation. All can be found within the header "'''<algorithm>'''"
'''STL iterators'''
They are defined within te header "'''<iterator>'''" and is coded as <pre>
#include<iterator>
foo(){
vector<type> myVector; vector<type>::iterator i; for( i = myVector.begin(); i < myVector.end(); i++){ bar(); }
}
'''Containers'''
STL supports a variety of containers for data storage. Generally these containers are supported in parallel for read actions, but does not safely support writing to the container with or without reading at the same time.
===List of TBB containers:===