TMap<int32, AActor*> exampleIntegerToActorMap; for (const TPair<int32, AActor*>& pair : exampleIntegerToActorMap) { pair.Key; pair.Value; }