Generic Programming
GP, 范型变成,就是使用template模板为主要工具来编写程序,与OOP的根本差异。
STL是范型变成最成功的案例。
使用一个东西,却不懂得它的根本原因,不高明。
C++基本语法
如何正确使用模板 (templates)
使用C++标准库
认识C++标准库
良好使用C++标准库
扩充C++标准库
C++ Standard Library
C++标准库
Stardard Template Library
STL,标准模板库
(容器,部件,算法)
标准库以header files形式呈现。
新式headers内的组件封装于namespace std
using std::cout
重要的网址
cplusplus.com
cppReference.com
gcc.gnu.org
STL六大部件(Components)
容器(Containers)
分配器(Allocators)
算法 (Algorithms)
迭代器 (Iterators)
适配器 (Adapters)
仿函式 (Functors)