CS253 STL
Name | Key/Value | Insertion | Append | Search | Ordered |
---|---|---|---|---|---|
string | value | O(n) | O(1) | O(n) | no |
vector | value | O(n) | O(1) | O(n) | no |
list | value | O(n) | O(1) | O(n) | no |
[multi]set | value | O(log n) | O(log n) | yes | |
[multi]map | key/value | O(log n) | O(log n) | yes | |
deque | value | O(n) | O(1) | O(n) | no |
unordered_[multi]set | value | O(1) | O(1) | no | |
unordered_[multi]map | key/value | O(1) | O(1) | no |
operator=
empty()
size()
/ max_size()
clear()
begin()
/ end()
/ cbegin()
/ cend()
rbegin()
/ rend()
/ crbegin()
/ crend()
front()
/ back()
insert()
/ erase()
find()
/ count()
value_type
iterator
const_iterator
size_type
key_type
reverse_iterator
const_reverse_iterator
Modified: 2017-03-28T21:19 User: Guest Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |