取vector区间的元素 取数组{1, 4, 3, 2, 5}在[1, 3]区间的元素为{4, 3, 2} std::vector<int> v{1,2,3,4,5}; std::vector<int> result(v.begin() + 1,v.begin() + 3);