I've just needed to code an unordeded_map to a (ordered) map to an unordered_map to a vector of classes that are wrappers around an atomic variable (atomics can't be copied for use in vectors).
To make things more interesting most of the keys are customs structs with their own hash functions, and there are several different namespaces required!
Ugly as heck to define but in use it is quite simple:
What level of nesting have you required in a project?
To make things more interesting most of the keys are customs structs with their own hash functions, and there are several different namespaces required!
Ugly as heck to define but in use it is quite simple:
Code:
myResults[key1][key2][key3][index].increment(); // thread safe counting of events
What level of nesting have you required in a project?