麻烦帮忙翻译两个参数的意思

来源:百度知道 编辑:UC知道 时间:2024/05/20 09:01:36
_First
The position of the first element in the range of elements to be copied.

_Last
The position of the first element beyond the range of elements to be copied.

vector 中的insert的第三个重载函数的后两个参数

在将要被拷贝的元素范围内,第一个(将要被拷贝的)元素的位置。
在将要被拷贝的元素范围外,(后面紧跟着的)第一个元素的位置。
应该是两个索引值。

vector 进行范围插入的时候,要你提供的第一个元素的位置和最后一个元素的位置