摘要: 说明了关于STL编程的6个有益的忠告,涉及:
1.The Location of Template Definitions --- 模板定义的位置
2.Standard Base Classes for Function Object --- 函数对象的标准基类
3.Storing Dynamically Allocated Objects in STL Containers --- 在标准模板库容器中保存动态生成的对象
4.Treating a Vector as an Array --- 将向量容器看作是数组
5.Dynamic Multidimensional Arrays and Vectors --- 动态多维数组与容器
6.Why You Shouldn't Store auto_ptr Objects in STL Containers --- 为什么不能在标准模板库容器中存储auto_ptr
阅读全文