移除指定位置处的 concurrent_unordered_map 元素。 此方法不是并发安全方法。
iterator unsafe_erase(
const_iterator _Where
);
iterator unsafe_erase(
const_iterator _Begin,
const_iterator _End
);
size_type unsafe_erase(
const key_type& _Keyval
);
参数
_Where
清除的迭代器位置。_Begin
要消除的元素范围中的第一个元素的位置。_End
要消除的元素范围之外的第一个元素的位置。_Keyval
要清除的键值。
返回值
前两个成员函数返回指定保持在所有移除元素外的第一个元素中的迭代器,或者 concurrent_unordered_map::end(),如果不存在这样的元素。 第三个成员函数返回它移除的元素的数目。
备注
第一个成员函数中移除_Where指向的控件序列元素 。 第二个成员函数移除该范围 [_Begin,_End) 的元素。
第三个成员函数移除在 concurrent_unordered_map::equal_range分隔的范围的元素 (_Keyval)。
要求
**头文件:**concurrent_unordered_map.h
**命名空间:**并发