I have a simple question so as you can see I have a hash function that returns a long and takes in a K key. This K is a typename in my template class HashTable, my hash function is not all-type encompassing so I need to do function overloading on my function hashfct based on what type K is. How do I specialize the K key if it is a parameter of the function hashfct? In other words, what is the syntax for specializing K key in this specific case where it is a function parameter?
template <typename K, V> class HashTable
{
//Code goes here...
}
long hashfct(K key)
{
//Code goes here...
}