共用方式為


concurrent_unordered_map::unsafe_erase 方法

移除指定位置的 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
    要清除的索引鍵值。

傳回值

前兩個成員函式傳回 Iterator 保持在所有項目外的第一個項目中移除,或如果沒有此類項目存在,則為 concurrent_unordered_map::end()。 第三個成成員函式傳回它移除的項目數目。

備註

第一成員函式中受控制序列中所指向的 _Where。 第二個成成員函式移除介於 [_Begin , _End) 的項目。

第三個成成員函式移除 concurrent_unordered_map::equal_range分隔範圍中的項目 (_Keyval)。

需求

**標頭:**concurrent_unordered_map.h

**命名空間:**concurrency

請參閱

參考

concurrent_unordered_map 類別