use C++11 iteration

Change-Id: I185b03dc8b747178fc442b7748dfe40762b46d32
use C++11 iteration

Change-Id: I30a252d2d518a361e16050f6eeffbe4371a9c982
use C++11 iteration

Change-Id: I8992c9fd853b7b92e328826063b50244f9fa3544
use C++11 iteration

Change-Id: I07de79fd793051efef717b7c44c88812cefc59d5
use C++11 iteration

Change-Id: I47eb10d425a6997d2bebaa5e56dd90543749c8b7
use C++11 iteration

Change-Id: I6eb1287a6dcb27b2d29612f8ec71290ace62be32
use C++11 iteration

Change-Id: Icc47b1ead273ee02e85c35cb7ab0e06b48cc42c2
cid#1256663: only allow comparing iterators from the same ring

Change-Id: I77eb186f0048a9bc335408bace96111e6cb2ca53
cid#1256669: uninit ptr field

Change-Id: I6e3c5ac5281052b49c734b152ad4cd83021c6de9
cid#1256668: uninit ptr field

Change-Id: I14f3bd9e3abd9562f47f21319da511df475b7fdd