InsertRange

将元素集或元素数组插入到指定索引的列表中。

插入数组的版本。

bool InsertRange(
   const int  index,               // 要插入的索引位置
   const T&   array[]              //要插入的数组
   );

插入集合的版本。

bool InsertRange(
   const int        index,         // 要插入的索引位置
   ICollection<T>*  collection     // 要插入的集合
   );

参数

index

[in]  要插入的索引位置。

&array[]

[in]要在指定索引位置插入的数组。

*collection

[in] 要在指定索引位置插入的集合。

返回值

成功返回true,否则返回false。