Advanced Java Services | STL container |
std::array | std::vector | std::deque | std::list | std::forward_list | std::set | std::unordered_set | std::stack | |
#include | <array> | <vector> | <deque> | <list> | <forward_list> | <set> | <unordered_set> | <stack> |
iterators | C++11 | C++11 | C++11 | |||||
before_begin | x | |||||||
begin | x | x | x | x | x | x | x | |
end | x | x | x | x | x | x | x | |
cbefore_begin | x | |||||||
cbegin | x | x | x | x | x | x | x | |
cend | x | x | x | x | x | x | x | |
rbegin | x | x | x | x | x | |||
rend | x | x | x | x | x | |||
crbegin | x | x | x | x | x | |||
crend | x | x | x | x | x | |||
element access | std::array | std::vector | std::deque | std::list | std::forward_list | std::set | std::unordered_set | std::stack |
operator[] | x | x | x | |||||
at | x | x | x | |||||
front | x | x | x | x | x | |||
back | x | x | x | x | ||||
data | x | x | ||||||
modifiers | std::array | std::vector | std::deque | std::list | std::forward_list | std::set | std::unordered_set | std::stack |
assign | x | x | x | x | ||||
clear | x | x | x | x | x | x | ||
emplace | x | x | x | x | x | |||
emplace_after | x | |||||||
emplace_back | x | x | x | |||||
emplace_front | x | x | x | |||||
emplace_hint | x | x | ||||||
erase | x | x | x | x | x | |||
erase_after | x | |||||||
fill | x | |||||||
insert | x | x | x | x | x | |||
insert_after | x | |||||||
push | x | |||||||
pop | x | |||||||
push_back | x | x | x | |||||
pop_back | x | x | x | |||||
push_front | x | x | x | |||||
pop_front | x | x | x | |||||
reverse | x | x | ||||||
resize | x | x | x | x | ||||
shrink_to_fit | x | x | ||||||
swap | x | x | x | x | x | x | x | x |
top | x | |||||||
capacity | std::array | std::vector | std::deque | std::list | std::forward_list | std::set | std::unordered_set | std::stack |
capacity | x | |||||||
empty | x | x | x | x | x | x | x | |
reserve | x | |||||||
size | x | x | x | x | x | x | ||
max_size | x | x | x | x | x | x | ||
various | std::array | std::vector | std::deque | std::list | std::forward_list | std::set | std::unordered_set | std::stack |
get_allocator | x | x | x | x | x | x | ||
merge | x | x | ||||||
merge | x | x | ||||||
remove | x | x | ||||||
remove_if | x | x | ||||||
sort | x | x | ||||||
splice | x | |||||||
splice_after | x |