项目:mySTL

黑体部分可尝试自行实现

1. 复数类模板

  • complex<>
    include/Complex.h
    Test/complextest.cpp

2. 容器

2.1 顺序容器

  • vector<>
    include/Vector.h
    Test/vectortest.cpp
  • list<>
    include/List.h
    Test/listtest.cpp
  • deque<>
    include/Deque.h
    Test/dequetest.cpp
  • valarray<>
    include/Valarray.h

2.2 关联容器

  • pair<>
    include/Utility.h
  • set<>
    include/Set.h
    Test/settest.cpp
  • multiset<>
    include/Multiset.h
    Test/multisettest.cpp
  • bitset<>
    include/Bitset.h
    Test/bitsettest.cpp
  • map<>
    include/Map.h
    Test/maptest.cpp
  • multimap<>
    include/Multimap.h
    Test/multimaptest.cpp

2.3 容器迭代器

  • stack<>
    include/Stack.h
    Test/stacktest.cpp
  • queue<>
    include/Queue.h
    Test/queuetest.cpp
  • priority_queuetest<>
    Test/priority_queuetest.cpp

3. 算法

  • fill()fill_n()generate()generate_n()min()max()for_each()find()find_if()count()count_if()equal()advance()distance()copy()
    include/Algorithm.h

4. 仿函数

include/Functional.h
Test/functionaltest.cpp
include/ReverseIterator.h

5. 迭代器

include/Iterator.h
Test/iteratortest.cpp

6. 智能指针

  • unique_ptr<>smart_ptr<>
    include/Memory.h

7. 空间分配器

include/Alloc.h
include/Allocator.h
include/Construct.h
include/UninitializedFunctions.h

8. 其他

include/RBtree.h
include/TypeTraits.h

你可能感兴趣的:(项目:mySTL)