美文网首页
(Boolan)C++标准库

(Boolan)C++标准库

作者: 坏水强 | 来源:发表于2017-11-24 23:57 被阅读0次

STL 六大部件(Components)

容器(Containers):特定类型对象的集合,用模板表示。

分配器(Allocators):容器内存的分配

算法(Algorithms):方法

迭代器(Iterators):用于访问容器

仿函数(Functors):重载了()的类http://www.jianshu.com/p/b4acf77af5fe

适配器(Adapter):一种机制,使某种事务的行为像另一种行为,如stack,queque

________________________________________________________

顺序容器(Sequence Containers) 和 关联容器(Associative Containers)

关联容器是按照关键字来保存和访问的,与之对应顺序容器是靠位置来索引的。

关联容器:map,set,multimap,multiset

                unordered_map,unordered_set,unordered_multimap,unordered_multiset.

map是指key-value(http://mropengate.blogspot.com/2015/12/cc-map-stl.html )

set只有key。

相关文章

网友评论

      本文标题:(Boolan)C++标准库

      本文链接:https://www.haomeiwen.com/subject/benrvxtx.html