C++ STL notes
来源:互联网 发布:python 编写图形界面 编辑:程序博客网 时间:2024/05/20 23:36
exception safe, type safe, thread safe,reentrant
Item1: Memory-contigious, node-based container
Item2: Encapsulation
Item3: An easy way to make copying efficient, correct, and immune to the slicing problem is to create containers of pointers instead of containers of objects.
Item4: Call empty whenever you need to know whether a container has zero elements.
Item5: Prefer range member functions to single element counterparts. Insert, assignment, and copy.
Item 6: Be alert for C++'s most vexing parse.
Item 7: When using containers of newed pointers, remember to delete the pointers before the container is destroyed.
Smart pointer not auto pointer
Item 8: Never create containers of auto_ptrs.
Item 9: Choose carefully among erasing options
- STL notes
- C++ STL notes
- NOTES of "effective STL"
- Some C Learning Notes
- C/C++ Notes
- notes c api
- Notes for C programmers
- Langage C , Notes
- C/C++语言Notes
- Cheat Notes C
- C Programing Lanuage Notes
- Objective-C Learning notes
- C/C++ Technical Notes
- C++STL
- C++STL
- C++----STL
- C++,stl
- c++STL
- linux select阻塞非阻塞的使用
- AfxOleInit()和::CoInitialize(NULL)区别
- typedef和define的详细区别
- linux安装开发环境
- IOS高级界面发送消息与Unity3D消息的接收
- C++ STL notes
- LogBack学习记录(二)体系架构
- MAP in ATL
- C#中操作API:
- ural 1106. Two Teams 二分图染色
- Design patterns in C++
- C++必备18个经典程序(1)
- Python raw_input和input总结 在版本2和版本3中的区别
- diff和patch使用指南