The identity hash is merely a hash value, so it doesn't have to be
unique, even within one context.

There is no unique "identifier" for an object, other than the object
itself. But that's enough to build hash maps and sets, so why do you
need one? (If you really do, you have to implement it yourself, e.g.
with a weak map mapping objects to integers you generate.)

/Andreas


On 20 January 2014 16:55,  <[email protected]> wrote:
> So I'd love to know the answer to this question. How would you store a
> std::set of handles to Function objects?
>
> -Jonathan
>
> On Sunday, June 26, 2011 10:05:46 PM UTC-4, Stephan Beal wrote:
>>
>> Hi, gurus,
>>
>> Is there a way to get a unique identifier for an Object? i see
>> GetIdentityHash() but it says "Also, it is not guaranteed to be unique," so
>> i can't quite figure out what use it would be. Is it "not unique" in the
>> global sense or is it really not guaranteed to be unique within a given
>> context?
>>
>> --
>> ----- stephan beal
>> http://wanderinghorse.net/home/stephan/
>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to