I do find code samples how to map to integers. But in practice it is very likely to map struct instances on the heap. And so is my current problem.
Is there any documentation how to do that? Is there any sample code showing how to do that? Is there sample code, which shows how to do that in a thread-safe way?