I need to use the map class in a loop where I need to create a new instance per iteration. But I want to make sure that I dispose of the last instance.
MyMap = new Map(Types::Int64, Types::Container);
So I think setting the Map to null at the end of the loop should clear it for reuse at the beginning of the loop.
MyMap = null;
I think that does the trick.
Does that sound right or is there a better way?
Thanks