indexedbstree.h
来自「datastucutre and algorithms, application」· C头文件 代码 · 共 24 行
H
24 行
// abstract class indexedBSTree
// abstract data type specification for indexed binary search trees
// all methods are pure virtual functions
// K is key type and E is value type
#ifndef indexedBSTree_
#define indexedBSTree_
#include "bsTree.h"
using namespace std;
template<class K, class E>
class indexedBSTree : public bsTree<K,E>
{
public:
virtual pair<const K, E>* get(int) const = 0;
// return pointer to pair with given index
virtual void delete(int) = 0;
// delete pair with given index
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?