Convert for loops to C++11x style in search policy classes