Inside the foreach loop, add the line in bold shown in Listing 5.
将清单5中显示的粗体代码行添加到foreach循环中。
Obviously, since this is a snapshot in time, the line could be any line inside the while loop, such as line 16, 17, or 18.
显而易见,因为这是一个即时快照,所以该行可能是 while 循环中的任意行,比如行 16、17 或 18。
In case you're not up on your STL, recall that for iterators the dereference operator returns the current object, so the line inside the for loop in the preceding snippet is equivalent to.
如果你对STL不熟悉,去看看有关迭代器反引用操作符的内容,它返回当前指向的对象,上面代码段中,for循环里的代码等同于。
应用推荐