Effective S T L
小于 1 分钟
目录
#1. effective STL-1 仔细选择你的容器
#2. effective STL-12 对STL容器的线程安全性的期待现实一些
#3. effective STL-17 使用交换技巧来修整过剩容量
#4. effective STL-02 小心对"容器无关代码"的幻想
#5. effective STL-03 使容器里对象的拷贝操作轻量而正确
#6. effective STL-04 用empty来代替检查size()是否为0
#7. effective STL-41 了解使用ptr_fun, mem_fun和mem_fun_ref的原因
#8. effective STL-42 确保less<T>和operator<具有相同的语义
#9. effective STL-43 尽量用算法调用代替手写循环
#10. effective STL-44 尽量用成员函数替代同名的算法
#11. effective STL-48 总是include适当的头文件
#12. effective STL-05 用区间成员函数代替单元素操作
#13. effective STL-06 警惕C++最令人恼怒的解析
#14. effective STL-7 当使用new的指针的容器时,记得在销毁容器前delete那些指针
#15. effective STL-8 永不建立auto_ptr的容器。
Loading...