template class Entry : public K { V mData; }; template class nsBaseHashtable { typedef Entry EntryType; struct EntryPtr { private: EntryType& mEntry; bool mExistingEntry; }; };