![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ STL
瓜皮233
这个作者很懒,什么都没留下…
展开
-
set 常用API
set构造函数 set<T> st;//set 默认构造函数; set(const set &st);//拷贝构造函数 set赋值操作 set & opeartor=(const set &st);//重载等号操作符 swap(st);//交换两个集合容器 set 大小操作 size();//返回容器中元素的数目 empty();//判断容器是否为空 set...原创 2019-09-14 09:22:29 · 724 阅读 · 0 评论 -
map 四种插入方式比较
map 四种插入方式比较 #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <map> using namespace std; void test01() { //创建一个map类型变量 map<int, int> mymap1; //第一种插入值的方式 mymap1.inser...原创 2019-09-14 20:51:08 · 301 阅读 · 0 评论