-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathhtElement.h
30 lines (22 loc) · 842 Bytes
/
htElement.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//*****************************************************************************************************
//
// This header file defines a template struct for storing elements in a hash table.
//
//*****************************************************************************************************
#ifndef HTELEMENT_H
#define HTELEMENT_H
//*****************************************************************************************************
template <typename T>
struct HTElement {
T item;
int status;
HTElement();
};
//*****************************************************************************************************
template <typename T>
HTElement<T>::HTElement() {
item = T();
status = 0;
}
//*****************************************************************************************************
#endif