IntersectWith
产生当前集合和过去集合的操作交集(数组)。更改当前集合到只包含在指定集合中存在的元素(数组)。
这个版本处理了实施 ICollection<T>接口的集合。
void IntersectWith(
ICollection<T>* collection
);
|
处理数组的版本。
void IntersectWith(
T& array[]
);
|
参数
*collection
[in] 与当前集合相交的集合。
&collection[]
[in] 与当前集合相交的数组。
注意