CPS 149s home
#include <set>
 
The set class implements an ordered collection of elements with no duplicates. Internally this is implemented as a balanced tree. If an item that is already present is inserted into the set, nothing happens. Some of the key functions are:
multiset
 
The header file for set also defines a multiset. This is an ordered collection of items, where the items may occur 0 or more times. Internally this is implemented as a balanced tree. If an item that is already present is inserted into the set, nothing happens. Some of the key functions are: