网站设计扁平化,怎么在自己网站上做拼图,wordpress打开页面很慢,网站站点查询const 迭代器:是迭代器产量#xff0c;该迭代器的值不能被修改#xff0c;且需要初始化#xff0c;初始化之后不能指向其他元素。const_iterator:当我们对const_iterator类型解引用时#xff0c;返回一个const值#xff0c;所以只能读#xff0c;不能写。它是一种迭代器… const 迭代器:是迭代器产量该迭代器的值不能被修改且需要初始化初始化之后不能指向其他元素。const_iterator:当我们对const_iterator类型解引用时返回一个const值所以只能读不能写。它是一种迭代器类型。e.g:for ( vectorint::const_iterator iter ivec.begin(); iter ! ivec.end(); iter) //good { cout *iter ; //print each element in ivec }PS//此处必看 vectorint::const_iterator //an iterator that cannot write element, eg:cannot *iter5,but can iterconst vectorint::iterator //an iterator whose value cannot change, eg:cannot iter 2013-03-29 转载于:https://www.cnblogs.com/zxwAAA/archive/2013/03/29/2988450.html