concurrent_unordered_set 類別

concurrent_unordered_set 類別是控制項型別 _Key_type 的項目不同長度序列的並行安全容器。 序列表示啟用並行安全附加、項目存取、Iterator 存取和 Iterator 周遊作業的方法。

template <
   typename _Key_type,
   typename _Hasher = std::tr1::hash<_Key_type>,
   typename _Key_equality = std::equal_to<_Key_type>,
   typename _Allocator_type = std::allocator<_Key_type>
>
, typename _Key_equality = std::equal_to<_Key_type>, typename _Allocator_type = std::allocator<_Key_type> > class concurrent_unordered_set : public details::_Concurrent_hash< details::_Concurrent_unordered_set_traits<_Key_type, details::_Hash_compare<_Key_type, _Hasher, _Key_equality>, _Allocator_type, false> >;

參數

  • _Key_type
    金鑰類型。

  • _Hasher
    雜湊函式物件型別。 此引數是選擇性的,而且預設值是 std::tr1::hash<_Key_type**>**。

  • _Key_equality
    相等比較函式物件型別。 此引數是選擇性的,而且預設值是 std::equal_to<_Key_type**>**。

  • _Allocator_type
    代表儲存的配置器物件型別封裝詳細資料與記憶體的配置和解除配置同時未排序的集合中。 此引數是選擇性的,而且預設值是 std::allocator<_Key_type**>**。

Members

Hh750108.collapse_all(zh-tw,VS.110).gif公用 Typedefs

名稱

描述

allocator_type

一個配置器類型處理的儲存區。

const_iterator

常數 Iterator 的型別受控制序列的。

const_local_iterator

一個常數 Bucket Iterator 的型別受控制序列的。

const_pointer

常數指標型別的項目。

const_reference

常數參考型別的項目。

difference_type

帶正負號的距離的型別有兩個項目之間的間距。

hasher

雜湊函式的型別。

iterator

Iterator 的型別受控制序列的。

key_equal

比較函式的型別。

key_type

排序索引鍵的型別。

local_iterator

一個包含 Iterator 的型別受控制序列的。

pointer

指標型別的項目。

reference

參考型別的項目。

size_type

不帶正負號的距離的型別有兩個項目之間的間距。

value_type

項目的型別。

Hh750108.collapse_all(zh-tw,VS.110).gif公用建構函式

名稱

描述

concurrent_unordered_set::concurrent_unordered_set 建構函式

多載。 建構一個同時未排序集合。

Hh750108.collapse_all(zh-tw,VS.110).gif公用方法

名稱

描述

concurrent_unordered_set::begin Method

傳回指向在並行容器的第一個項目的 Iterator。 這個方法是並行安全的。

concurrent_unordered_set::cbegin Method

傳回常數指向在並行容器的第一個項目的 Iterator。 這個方法是並行安全的。

concurrent_unordered_set::cend Method

傳回常數指向位置的 Iterator 成功最後一個項目在並行容器。 這個方法是並行安全的。

concurrent_unordered_set::clear Method

清除在並行容器的所有項目。 這個函式不是並行安全的。

concurrent_unordered_set::count Method

計算符合指定索引鍵的項目數目。 這個函式是並行安全的。

concurrent_unordered_set::empty Method

測試項目是否不存在。 這個方法是並行安全的。

concurrent_unordered_set::end Method

傳回指向位置的 Iterator 成功最後一個項目在並行容器。 這個方法是並行安全的。

concurrent_unordered_set::equal_range Method

尋找符合指定之索引鍵的範圍。 這個函式是並行安全的。

concurrent_unordered_set::find Method

尋找符合指定之索引鍵的項目。 這個函式是並行安全的。

concurrent_unordered_set::get_allocator Method

傳回這個並行容器中儲存的配置器物件。 這個方法是並行安全的。

concurrent_unordered_set::hash_function 方法

傳回儲存的雜湊函式物件。

concurrent_unordered_set::insert 方法

多載。 將項目加入至 concurrent_unordered_set 物件。

concurrent_unordered_set::key_eq 方法

傳回儲存的相等比較函式物件。

concurrent_unordered_set::load_factor Method

計算並傳回容器目前載入因數。 載入因數是項目數 Bucket 的數目除以的容器中。

concurrent_unordered_set::max_load_factor Method

取得或設定容器的最大的負載荷因素。 最大的負載荷因素比可以在所有 Bucket 是元素的數目,在容器成長其內部表格之前。

concurrent_unordered_set::max_size Method

傳回並行容器的大小上限,取決於配置器。 這個方法是並行安全的。

concurrent_unordered_set::rehash Method

重新建置雜湊資料表。

concurrent_unordered_set::size Method

傳回項目數個並行容器的。 這個方法是並行安全的。

concurrent_unordered_set::swap 方法

交換兩個 concurrent_unordered_set 物件的內容。 這個方法不是並行安全的。

concurrent_unordered_set::unsafe_begin Method

傳回 Iterator 置於這個容器的第一個項目特定的 Bucket。

concurrent_unordered_set::unsafe_bucket Method

傳回指定索引特定索引鍵對應至這個容器。

concurrent_unordered_set::unsafe_bucket_count Method

傳回包含目前數目。這個容器的。

concurrent_unordered_set::unsafe_bucket_size Method

傳回項目數特定 Bucket 的這個容器。

concurrent_unordered_set::unsafe_cbegin Method

傳回 Iterator 置於這個容器的第一個項目特定的 Bucket。

concurrent_unordered_set::unsafe_cend Method

傳回 Iterator 成功加入至最後一個項目的位置在特定 Bucket。

concurrent_unordered_set::unsafe_end Method

傳回 Iterator 置於這個容器的最後一個項目特定的 Bucket。

concurrent_unordered_set::unsafe_erase 方法

多載。 從 concurrent_unordered_set 移除項目在指定的位置。 這個方法不是並行安全的。

concurrent_unordered_set::unsafe_max_bucket_count Method

傳回包含最大數目。這個容器的。

Hh750108.collapse_all(zh-tw,VS.110).gif公用運算子

名稱

描述

concurrent_unordered_set::operator= 運算子

多載。 將另一個 concurrent_unordered_set 物件的內容指派給這一個。 這個方法不是並行安全的。

備註

如需關於 concurrent_unordered_set 類別的詳細資訊,請參閱 平行容器和物件

繼承階層架構

_Traits

_Concurrent_hash

concurrent_unordered_set

需求

標題: concurrent_unordered_set.h

命名空間: concurrency

請參閱

參考

concurrency 命名空間

概念

平行容器和物件