我正在尝试定义函数 find from class FHhashQPwFind
。你能告诉我我做错了什么吗?
我把评论“这是错误”放在编译器说的地方:
错误:模板参数的数量错误(1,应该是 2)
template <class Object, typename KeyType>
class FHhashQPwFind: public FHhashQP<Object>
{
public:
const Object find(const KeyType & key);
protected:
int myHashKey(const KeyType & key) const;
int findPosKey( const KeyType & key ) const;
};
template <class Object, typename KeyType>
const Object FHhashQPwFind<Object>::find(const JeyType & key)//HERE IS THE ERROR
{
}