for (vector<int>::iterator it = iv.begin(); it != iv.end(); ++it) { *it += 1; }
transform(iv.begin(), iv.end(), iv.begin(), bind1st(plus<int>(), 1));