Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > hash_map insert...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 9787 of 9984
Post > Topic >>

hash_map insertion question

by devdude <rottyguy70@[EMAIL PROTECTED] > Jul 14, 2008 at 09:41 AM

Greetings,

Is it possible (or easily make it possible) to insert into a hash_map
if I've already calculated a hash value for my key?  Because of the
way my application works, prior to calling the hash_map insert, I've
already ran my key through a hash function for something else.  I
would like to save some cycles by using it for my hash_map insert.  I
realize I can send in a hash function with the creation of my hash_map
but tracking the callback to the insert seems like more trouble then
it's worth.  I am using Visual Studio's 2005 STL.

TIA

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 2 Posts in Topic:
hash_map insertion question
devdude <rottyguy70@[E  2008-07-14 09:41:51 
Re: hash_map insertion question
Oncaphillis <oncaphill  2008-07-14 14:40:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:37:37 CDT 2008.