C++ 标准模板库(STL)各函数详解

C++ Vector(向量)

Constructor Operator
assign() at()
back() begin()
capacity() clear()
empty() end()
erase() front()
get_allocator() insert()
max_size() pop_back()
push_back() rbegin()
rend() reserve()
resize() size()
swap()

C++ List(链表)

assign() back()
begin() clear()
empty() end()
erase() front()
get_allocator() insert()
max_size() merge()
pop_back() pop_front()
push_back() push_front()
rbegin() remove()
remove_if() rend()
resize() reverse()
size() sort()
splice() swap()
unique()

C++ Double Ended Queue(双向队列)

Constructors Operators
assign() at()
back() begin()
clear() empty()
end() erase()
front() get_allocator()
insert() max_size()
pop_back() pop_front()
push_back() push_front()
rbegin() rend()
resize() size()
swap()

C++ Stack(堆栈)

empty() pop()
push() size()
top()

C++ Queue(队列)

push() pop()
front() back()
empty() size()

C++ Priority Queue(优先队列)

empty() pop()
push() size()
top()

C++ Bitsets(bit类)

Constructors Operators
any() count()
flip() none()
reset() set()
size() test()
to_string() to_ulong()

C++ Map(映射)

C++ MultiMap(多映射)

C++ Set(集合)

begin() clear()
count() empty()
end() equal_range()
erase() find()
get_allocator() insert()
lower_bound() key_comp()
max_size() rbegin()
rend() size()
swap() upper_bound()
value_comp()

C++ MultiSet(集合,元素可重复)