向量就像是盛放变长数组的花园,大约所有STL容器中有一半是基于向量的,如果你掌握了这个程序,你便差不多掌握了整个STL的一半了
http://www.cppblog.com/yehongly/archive/2008/07/08/38224.html
实例:
http://www.cnblogs.com/yukaizhao/archive/2010/07/28/cpp-vector.html
有待补充完善
仿函数的应用:
http://hi.baidu.com/0wingbinging/blog/item/a3c3880578f3e9c67b89479a.html
http://hi.baidu.com/aidyhua/blog/item/45a8f51d2a85fd8086d6b66a.html
boost::any实现一个容器里放多种类型的对象:
http://hi.baidu.com/hins_pan/blog/item/ccaa574d504b3be6d72afcd3.html
顺序容器里面的元素类型
有value_type
还有reference,就是value_type&
还有const_reference,就是const value_type&