共用方式為


concurrent_unordered_map::concurrent_unordered_map 建構函式

建構並行不按順序的地圖。

explicit concurrent_unordered_map(
   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_map(
   const allocator_type& _Allocator
);

template <
   typename _Iterator
>
concurrent_unordered_map(
   _Iterator_Begin,
   _Iterator_End,
   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_map(
   const concurrent_unordered_map& _Umap
);

concurrent_unordered_map(
   const concurrent_unordered_map& _Umap,
   const allocator_type& _Allocator
);

concurrent_unordered_map(
   concurrent_unordered_map&& _Umap
);

參數

  • _Iterator
    輸入 Iterator 類型。

  • _Number_of_buckets
    此未按順序對應的雜湊桶初始數目。

  • _Hasher
    此未按順序對應雜湊函式。

  • _Key_equality
    此未按順序對應相等比較函式。

  • _Allocator
    此未按順序的對應配置器。

  • _Begin
    要複製的項目範圍中第一個項目的位置。

  • _End
    超過要複製的項目之範圍的第一個元素的位置。

  • _Umap
    來源concurrent_unordered_map物件複製或移動的項目。

備註

將所有建構函式配置物件儲存_Allocator ,並將初始化未按順序的地圖。

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

第二個建構函式會指定不按順序的對應表的配置器。

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

第四和第五個建構函式指定並行的未排序對應的一份_Umap。

最後一個建構函式會指定以移動,同時不按順序對應的_Umap。

需求

標頭: concurrent_unordered_map.h

Namespace: 並行存取

請參閱

參考

concurrent_unordered_map 類別