![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
文章平均质量分 78
luenle
java工程师
展开
-
STL Collection Types
STL Collection Types Each STL collection type has its own template parameters, which will be discussed later. What type of collection you use is up to your needs and tastes. From原创 2007-08-28 12:06:00 · 614 阅读 · 0 评论 -
STL Algorithms
Algorithms Up to this point we have discussed how to use STL at a bare minimum, now we need to delve into the most important part of the collections. How do we manipulate a co原创 2007-08-28 12:10:00 · 682 阅读 · 0 评论 -
STL
STL(Standard Template Library)是C++标准库的一部分(80%),是用C++ Template机制来表达泛型的库。STL,将算法与数据结构分离,在没有效率损失的前提下,得到了及大的弹性。六大组件容器(Container)算法(Algorithm)迭代器(Iterator)仿函数(Function object)适配器(Adaptor)空间配制器(allocato原创 2007-08-27 16:48:00 · 764 阅读 · 0 评论 -
STL用法规则
Rule 1:You can create STL containers that store either objects or pointer to objects.class TMyClass;typedef list TMyClassList; // Stores objects into the list containertypedef list TMyClass原创 2007-08-28 10:26:00 · 629 阅读 · 0 评论 -
STL Collections General Class Methods
STL Collections General Class Methodsempty Determines if the collection is empty size Determines the number of elements in the collection begin原创 2007-08-28 12:08:00 · 548 阅读 · 0 评论 -
STL线程安全的解决方法
Multithreading Issues STL is not thread protected, so you must provide locks on your collections if they will be used in multithreaded environment. The standard locking mechani原创 2007-08-28 12:12:00 · 3072 阅读 · 1 评论