0
I am a beginner in programming and I am studying the C++ language, therefore it is also my first time using this site. But after doing a basic course on the mentioned language, I downloaded a source code to understand some of the practice.
Then reading a part of the code I came across this line of code:
for (Creature* spectator : list) { }
But when I was looking at this type of loop there were some arguments but that was defined as the following example >> For (int i = 0; i < 10; i++) <<
The question is, what does this line want to do? What is this loop structure?