xxxxxxxxxx
/+dub.sdl:
dependency "emsi_containers" version="~>0.8.0"
+/
import containers;
import std.typecons;
struct Map
{
HashMap!(int, int) theMap;
}
void main()
{
HashMap!(int, RefCounted!Map) mapOfMaps;
foreach (i; 0 .. 1000)
{
RefCounted!Map val;
if (i == 0) val.theMap.getOrAdd(i, i);
mapOfMaps.getOrAdd(i, val);
}
}