1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
template<class K, class V> class Entry : public K { V mData; }; template<typename K, typename V> class nsBaseHashtable { typedef Entry<K, V> EntryType; struct EntryPtr { private: EntryType& mEntry; bool mExistingEntry; }; };