I am inserting all of the words in the dictionary into the unordered_set STL.
For the life of me, I cannot figure out how to override the default hash function for the unordered_set.
Can someone please point me in the right direction? I cannot figure out the syntax.
Thank you in advanced
Overloading Hash Function
Page 1 of 11 Replies - 1186 Views - Last Post: 20 November 2011 - 08:59 AM
Replies To: Overloading Hash Function
#2
Re: Overloading Hash Function
Posted 20 November 2011 - 08:59 AM
The hash function is passed as the second template parameter to the unordered_set. Google is your friend, I typed what you were looking for and found this: hashing and equality
This post has been edited by vividexstance: 20 November 2011 - 09:00 AM
Page 1 of 1

New Topic/Question
Reply



MultiQuote


|