【C++】使用AVL平衡树实现一个相似STL的Map

我才学完AVL,感受AVL好像能实现相似map这样的功能,因而作了这样一个模板类。(后来知道stl的map也是用平衡树实现的,可是是用内建的红黑树,更高级一点)node #include <iostream> #include <cstdio> #include <string> using namespace std; /* Map使用起来就像一个强大的数组,可是你不须要事先声明它的范围,它的
相关文章
相关标签/搜索