共用方式為


concurrent_unordered_map::at 方法

用來尋找 concurrent_unordered_map 的項目具有指定索引鍵值。 這個方法是並行安全的。

mapped_type& at(
   const key_type& _Keyval
);

const mapped_type& at(
   const key_type& _Keyval
) const;

參數

  • _Keyval
    要尋找的索引鍵值。

傳回值

要尋找的項目之資料值的參考。

備註

如果引數索引鍵值找不到,函式會擲回類別的 out_of_range物件。

需求

標題: concurrent_unordered_map.h

命名空間: concurrency

請參閱

參考

concurrent_unordered_map 類別