concurrent_unordered_set::concurrent_unordered_set 建構函式

建構一個同時發生的未排序的集合。

explicit concurrent_unordered_set(
   size_type _Number_of_buckets = 8,
   const hasher& _Hasher = hasher(),
   const key_equal& _Key_equality = key_equal(),
   const allocator_type& _Allocator = allocator_type()
);

concurrent_unordered_set(
   const allocator_type& _Allocator
);

template <
   typename _Iterator
>
concurrent_unordered_set(
   _Iterator_First,
   _Iterator_Last,
   size_type _Number_of_buckets = 8,
   const hasher& _Hasher = hasher(),
   const key_equal& _Key_equality = key_equal(),
   const allocator_type& _Allocator = allocator_type()
);

concurrent_unordered_set(
   const concurrent_unordered_set& _Uset
);

concurrent_unordered_set(
   const concurrent_unordered_set& _Uset,
   const allocator_type& _Allocator
);

concurrent_unordered_set(
   concurrent_unordered_set&& _Uset
);

參數

  • _Iterator
    輸入 Iterator 類型。

  • _Number_of_buckets
    雜湊桶這個未排序集合的初始數目。

  • _Hasher
    這個未排序集合的雜湊函式。

  • _Key_equality
    這個未排序集合的相等比較函式。

  • _Allocator
    這個未排序集合的配置器。

  • _First

  • _Last

  • _Uset
    來源concurrent_unordered_set物件複製或移動的項目。

備註

將所有建構函式配置物件儲存_Allocator ,並將初始化未排序的集合。

第一個建構函式會指定一組空的初始,並明確指定的雜湊桶,雜湊函式、 等號比較函式和配置器型別使用。

第二個建構函式會指定配置器未排序集合。

第三個建構函式會指定 Iterator 範圍 [_Begin, _End) 提供的值。

第四和第五個建構函式指定並行的未排序集合的一份_Uset。

最後一個建構函式指定並行的未排序集合的移動_Uset。

需求

標頭: concurrent_unordered_set.h

Namespace: 並行存取

請參閱

參考

concurrent_unordered_set 類別