A hash function transform a Key into an integer hash value, is it possible to have an integer as a Key ?
with boost::hash function it seems I get the same integer for the hash value…so I am a little bit in trouble
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With integers that wouldn’t be a problem, would it? Equal input values would produce the same hash-value, and distinct input values produce distinct hash-values. This is the perfect hash-function!