for (declaration : expression) statement; /* This statement will iterate through the elements in the given expression. expression: an object of a type that represents a sequence declaration: defines the variable that we‘ll use to access the underlying elements in the sequence. */
[Cpp primer] range for (c++11)
原文:http://www.cnblogs.com/KennyRom/p/6422048.html