摘要: 說明了關(guān)于STL編程的6個有益的忠告,涉及:
1.The Location of Template Definitions --- 模板定義的位置
2.Standard Base Classes for Function Object --- 函數(shù)對象的標(biāo)準(zhǔn)基類
3.Storing Dynamically Allocated Objects in STL Containers --- 在標(biāo)準(zhǔn)模板庫容器中保存動態(tài)生成的對象
4.Treating a Vector as an Array --- 將向量容器看作是數(shù)組
5.Dynamic Multidimensional Arrays and Vectors --- 動態(tài)多維數(shù)組與容器
6.Why You Shouldn't Store auto_ptr Objects in STL Containers --- 為什么不能在標(biāo)準(zhǔn)模板庫容器中存儲auto_ptr
閱讀全文