20 Aug
2010
20 Aug
'10
10:32 p.m.
Please do not top-post.
On Fri, Aug 20, 2010 at 4:07 PM, B Hart
Just a comparison function? How is, for example, unordered set going to know the end of the array, to hash it? I don't know what is happening under-the-hood so I'm deferring to the list experts.
Can you give me a simple example?
How is it going to know the end? That depends on how you create your array and set up your hash function. If you have an end-of-array marker then you would stop at that (like how '\0' is the end-of-array marker for C strings), if it is a static length then you would just use that, etc...