1 获取:

STL有很多实现版本,可以使用STLport版,该组织一直致力于STL的各种可移植:

https://sourceforge/projects/stlport/files/latest/download

各个版本:

  • HP版:最原始版本,Alexander Stepanov和Meng Lee完成; HP公司拥有;
    • PJ版:P. J. Plauger开发,被Visual C++采用,继承HP版;
    • RW版:Rouge Wave公司开发,被C++ Builder采用,继承HP版;
    • SGI版:Silicon Graphics Computer Systems,Inc.公司发展的;
      • StlPort版:STLport网站,致力于将SGI STL的高移植版本;
other:5 网友实现版本:https://github/zouxiaohang/TinySTL/tree/master/TinySTL


2 本机编译:

cd STLport-5.2.1/build/lib  (READ文档说了各种情况下的编译)

make -f gcc.mak depend

make -f gcc.mak install


3 阅读源码:

简单的vim就不说了,常用的eclipse和sourceinsight


4 sourceinsight阅读:

ubuntu下可以用wine

官网下载:https://www.sourceinsight/trial/





更多推荐

C++_STL源码阅读:源码准备