When I add an item (an instance of a class) to a list, I need to know the index of the new item. Is it possible with any function?
Example code:
MapT
If you're always using the .Add(T); method and not using .Remove(T);, then the index will be Count - 1.
.Add(T);
.Remove(T);
Count - 1