
STL
chen_song_
人终将被年少不可得之物质而困其一生
展开
-
STL的学习之(一)list和pair对组的使用
一,list容器的使用一些api的说明 成员函数(构造函数) 构造 list (公开成员函数) (析构函数) 析构 list (公开成员函数) operator= 赋值给容器 (公开成员函数) assign 将值赋给容器 (公开成员函数) get_allocator 返回相关的分配器 (公开成员函数) 元素访问 front 访问第一个元素 (公开成员函数) [编辑] back 访问最后一个元素 (原创 2017-09-27 01:21:07 · 5657 阅读 · 0 评论 -
STL的学习之(二)适配器使用
一,STL的适配器1,语法的介绍: bind2nd() 函数, bind1sd函数 继承binary_function<参数1, 参数2,返回值类型 >写一个 伪函数要用const修饰 #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <vector> #include <algorithm> #include <stri原创 2017-09-28 01:03:49 · 414 阅读 · 0 评论 -
STL的学习之( 三)
bind的使用和场景#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <functional> #include <set> #include <deque> using namespace std; //使用原创 2017-09-29 01:06:52 · 340 阅读 · 0 评论