Bfs traversal doubt

how iterator is working in the code given below

for(int nbr:l[node]){
if(!visited[nbr]){
q.push(nbr);
//mark that nbr as visietd
visited[nbr]=true;
}
}