auto x = [1, 2, 3, 4] auto r = range(x) r.pop_back() assert_equal(3, r.back())