20 Aug
2010
20 Aug
'10
6:58 p.m.
I posted this last night, but not sure it went through to the list as I don't see it in my sent items and I never got any responses. Sorry if it is duplicate. I'm hoping someone could offer an example or advice on how to best use unordered_set or unordered_map to hold many small arrays of unsigned integers. I would like to use the built in hash function rather than have to create one. Also, since I have many of these small arrays, keeping the memory footprint small and the hash time at a minimum are important concerns. A typical int array would hold 5 unsigned ints. Maybe someone could offer example code or suggestions. The samples I see are always the trivial case of just entering a single number or string as key or value. Thanks.