concurrent_unordered_multiset::unsafe_erase 方法

移除指定位置处的 concurrent_unordered_multiset 元素。 此方法不是并发安全方法。

iterator unsafe_erase(
   const_iterator _Where
);

iterator unsafe_erase(
   const_iterator _First,
   const_iterator _Last
);

size_type unsafe_erase(
   const key_type& _Keyval
);

参数

  • _Where
    清除的迭代器位置。

  • _First

  • _Last

  • _Keyval
    要清除的键值。

返回值

前两个成员函数返回指定保持在所有移除元素外的第一个元素中的迭代器,或者 concurrent_unordered_multiset::end 方法(),如果不存在这样的元素。 第三个成员函数返回它移除的元素的数目。

备注

第一个成员函数移除由 _Where指向的元素。 第二个成员函数移除该范围 [_Begin,_End) 的元素。

第三个成员函数移除在 concurrent_unordered_multiset::equal_range 方法分隔的范围的元素 (_Keyval)。

要求

**头文件:**concurrent_unordered_set.h

**命名空间:**并发

请参见

参考

concurrent_unordered_multiset 类