c++ stl
c++ stl的数据类型,主要部分
zylgbin
不知死,焉知生
展开
-
g++/gcc compile_options
Ox 最大化选项。(-Ogityb2 -Gs) maximum opts. (-Ogityb1 -Gs)-Ox 最大化选项。(-Ogityb2 -Gs) maximum opts. (-Ogityb1 -Gs)-Za 禁用扩展(暗指 -Op) disable extensions (implies -Op)-Op[-] 改善浮点数一致性 improve floating-pt consistency。-Op[-] 改善浮点数一致性 improve floating-pt consistency。原创 2023-01-02 15:59:10 · 1215 阅读 · 0 评论 -
qt 5
c++风格头文件作用域类函数study for googleelse study命名规则注释格式pro文件详解TAMPLATEHEADERSSOURCESFORMS / INTERFACESLEXSOURCESYACCSOURCESTARGETDESTDIRDEFINESINCLUDEPATHDEPENDPATHVPATHDEF_F...原创 2018-08-20 14:49:59 · 3033 阅读 · 0 评论 -
vector
vector1 生成构造// constructing vectors#include <iostream>#include <vector>int main (){ // constructors used in the same order as described above: std::vector<int> first...原创 2018-08-06 11:19:57 · 170 阅读 · 0 评论 -
deque双端队列
// constructing dequesinclude include int main () { unsigned int i;// constructors used in the same order as described above: std::deque first; // emp...原创 2018-08-06 14:50:18 · 174 阅读 · 0 评论 -
queue
queue 单向队列,从一端存,从列一段取1 生成构造2 操作2.1 大小和容量2.2 比较2.3 find2.4 截取部分2.5 增,插,删,改/* * use QQueue on qt,but c++ is queue * constructor empty size * front ...原创 2018-08-06 15:29:44 · 145 阅读 · 0 评论 -
list
list 双向列表,链式存储1 生成构造// constructing lists#include &lt;iostream&gt;#include &lt;list&gt;int main (){ // constructors used in the same order as described above: std::list&lt;int&gt; ...原创 2018-08-06 16:12:15 · 94 阅读 · 0 评论 -
map
map1 生成构造// constructing maps#include <iostream>#include <map>bool fncomp (char lhs, char rhs) {return lhs<rhs;}struct classcomp { bool operator() (const char& lhs, co...原创 2018-08-06 17:39:25 · 107 阅读 · 0 评论 -
set
Sets/Multisets:内部的元素依据其值自动排序,Set内的相同数值的元素只能出现一次,Multisets内可包含多个数值相同的元素,内部由二叉树实现(实际上基于红黑树(RB-tree)实现),便于查找; map和multisets也一样1.构造// constructing sets#include <iostream>#include <s...原创 2018-08-07 08:54:22 · 131 阅读 · 0 评论