I'm sorry ne555.
I could not understand what do you mean.
I assume you referred me to the "Templates and inline functions" post, but I did not understand from it what am I suppose to do in my case...
#pragma once
enum state { empty, full, deleted };
template<class T, class K>
class Item
{
private:
T data;
K key;
state flag;
public:
Item(){}
Item(T d, K k, state f)
{
data = d;
key = k;
flag = f;
}
void edit(T d, K k, state f) { data = d; key = k; flag = f; }
};