基于 SGI STL 的 Tiny STL
本仓库原是《STL源码剖析》一书的代码合集,后续在其基础上运用部分C++17特性进行了代码改写。
最终希望参考SGI STL SOURCE与 folly src 实现一个MiniSTL。
针对sgi stl src与folly src,有学习计划如下:
iterator_traits(stl_iterator.h)
priority_queue(stl_priority_queue.h)
map(stl_map.h) multiset(stl_multiset.h)
容器类配接器(stack、queue)
迭代器配接器(insert_iterator、reverse_iterator、istream_iterator)
函数配接器(not1、not2、bind1st、bind2nd、compose1、compose2、ptr_fun...)
shared_ptr(shared_ptr.h)
unique_ptr(unique_ptr.h)
OS:macOS Monterey 12.1
CXX_Compiler:Apple clang version 13.0.0
Cmake:3.21.4
CppVersion:C++17
cd $work_path/MiniSTL && mkdir build && cd build;
cmake .. && make;
libSTL.a is in $work_path/MiniSTL/build/Sourcecd $work_path/MiniSTL && mkdir build && cd build;
cmake .. -DENABLE_MINISTL_TEST=ON && make;
TEST in $work_path/MiniSTL/build/TestMIT.
暂无开放 Issues,或尚未同步最近议题。