C++ container

Itemdescriptioniteratorscapacityelement accessmodifiersoperations
array线性数组,固定长度begin/end
rbegin/rend
cbegin/cend
crbegin/crend
size
max_size
empty
operator[]
at
front/back
data
fill
swap
vector线性数组,可变长度begin/end
rbegin/rend
cbegin/cend
crbegin/crend
size
max_size
empty
resize
capacity
reserve
shrink_to_fit
operator[]
at
front/back
data
assign
push_back/pop_back
push_front/ pop_front
insert
erase
swap
clear
emplace
emplace_back
deque// deck 双端队列
长度可变,线性
begin/end
rbegin/rend
cbegin/cend
crbegin/crend
size
max_size
empty
resize
shrink_to_fit
operator[]
at
front/back
assign
push_back/pop_back
push_front/ pop_front
insert
erase
swap
clear
emplace
emplace_front/emplace_back
queueFIFO queueempty
size
front/backpush/pop
emplace
swap
priority_queueempty
size
toppush/pop
emplace
swap
stackLIFO stackempty
size
toppush/pop
emplace
swap
forward_list单向链表,线性empty
front
begin/end
before_begin/before_end
cbefore/cend
assign
max_size
splice_afteremplace_front
push_front/pop_front
emplace_after
insert_after/erase_after
swap
resize
clear
remove/ remove_if
unique
merge
sort
reverse
map二叉搜索树emptyoperator[]
begin/end
rbegin/rend
cbegin/cend
crbegin/crend
insert
size
max_size
find
at
erase
swap
clear
emplace
empalce_hint
key_comp
value_comp
multimap允许相同的键
unordered_mapoperator[]
begin/end
cbegin/cend
insertfind
at
erase
swap
clear
emplace
emplace_hint
count
equal_range
set二叉搜索树emptybegin/end
rbegin/rend
cbegin/cend
crbegin/crend
insert
size
max_size
find
erase
swap
clear
emplace
emplace_hint
key_comp
value_comp
count
lower_bound/upper_bound
equal_range
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值