Is it possible to use std::string or other complex structure key type with boost unordered map on shared memory? If so, can I find some sample code? I found some sample code fo
Yes.
You can see an example here:
You will want to watch the overhead when doing lookups. Using non-standard key equality/hash functions can solve this:
want to efficiently overcome mismatch between key types in a map in Boost.Interprocess shared memory
Note that that answer concerns itself with ordered containers