skipnode.h
来自「datastucutre and algorithms, application」· C头文件 代码 · 共 20 行
H
20 行
// node type used in skip lists
// node with a next and element field; element is a pair<const K, E>
// next is a 1D array of pointers
#ifndef skipNode_
#define skipNode_
template <class K, class E>
struct skipNode
{
typedef pair<const K, E> pairType;
pairType element;
skipNode<K,E> **next; // 1D array of pointers
skipNode(const pairType& thePair, int size)
:element(thePair){next = new skipNode<K,E>* [size];}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?