STL各容器成员对比表
来源:互联网 发布:淘宝主图去同款 编辑:程序博客网 时间:2024/06/03 14:35
来源:http://www.cplusplus.com
一转:http://www.cnblogs.com/fangyukuan/archive/2010/09/21/1832675.html
Sequence containers
Associative containers
Headers
<vector>
<deque>
<list>
<set>
<bitset>
Members
complex
vector
deque
list
set
multiset
map
multimap
bitset
constructor
*
constructor
constructor
constructor
constructor
constructor
constructor
constructor
constructor
destructor
O(n)
destructor
destructor
destructor
destructor
destructor
destructor
destructor
operator=
O(n)
operator=
operator=
operator=
operator=
operator=
operator=
operator=
operators
iterators
begin
O(1)
begin
begin
begin
begin
begin
begin
begin
end
O(1)
end
end
end
end
end
end
end
rbegin
O(1)
rbegin
rbegin
rbegin
rbegin
rbegin
rbegin
rbegin
rend
O(1)
rend
rend
rend
rend
rend
rend
rend
capacity
size
*
size
size
size
size
size
size
size
size
max_size
*
max_size
max_size
max_size
max_size
max_size
max_size
max_size
empty
O(1)
empty
empty
empty
empty
empty
empty
empty
resize
O(n)
resize
resize
resize
element access
front
O(1)
front
front
front
back
O(1)
back
back
back
operator[]
*
operator[]
operator[]
operator[]
operator[]
at
O(1)
at
at
modifiers
assign
O(n)
assign
assign
assign
insert
*
insert
insert
insert
insert
insert
insert
insert
erase
*
erase
erase
erase
erase
erase
erase
erase
swap
O(1)
swap
swap
swap
swap
swap
swap
swap
clear
O(n)
clear
clear
clear
clear
clear
clear
clear
push_front
O(1)
push_front
push_front
pop_front
O(1)
pop_front
pop_front
push_back
O(1)
push_back
push_back
push_back
pop_back
O(1)
pop_back
pop_back
pop_back
observers
key_comp
O(1)
key_comp
key_comp
key_comp
key_comp
value_comp
O(1)
value_comp
value_comp
value_comp
value_comp
operations
find
O(log n)
find
find
find
find
count
O(log n)
count
count
count
count
count
lower_bound
O(log n)
lower_bound
lower_bound
lower_bound
lower_bound
upper_bound
O(log n)
upper_bound
upper_bound
upper_bound
upper_bound
equal_range
O(log n)
equal_range
equal_range
equal_range
equal_range
unique members
capacity
reserve
splice
remove
remove_if
unique
merge
sort
reverse
set
reset
flip
to_ulong
to_string
test
anynone
- 【STL】各容器成员对比表
- STL各容器成员对比表
- STL 各容器成员对比表
- 【STL】各容器成员对比表
- STL各容器成员对比表
- 【STL】各容器成员对比表
- Stl各容器对比
- STL中的容器对比
- STL常用容器对比
- STL各个容器成员比较表
- STL常见容器set 、vector、 map 对比
- C++ STL容器部分对比分析
- 闲谈STL容器之size()成员函数
- STL中所有容器共有成员函数
- STL常用容器成员函数列表
- stl容器之--自定义结构体作为stl容器元素成员的使用
- 从STL容器的使用对比,研究hashmap…
- 当类中包含STL容器成员时
- winvnc源码阅读笔记(三)---------vncClient::SendUpdate线程
- 深入解析跨站点脚本攻击XSS
- zencart简易页面的导航标题显示重复
- raid
- WinForm 数据验证
- STL各容器成员对比表
- Android NDK开发学习
- VS 不能调试 解决方法
- Linux下安装启动多个Mysql
- JSP被生成java类编译及Tag解析过程
- SelectNodes 与 XPath
- 华鼎数据库集群解决方案
- oracle数据库中查询被锁住的表
- 【STL】List基础