次の方法で共有


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
    入力反復子の型。

  • _Number_of_buckets
    この順序なしのマップのバケットの初期数。

  • _Hasher
    この順序なしのマップのハッシュ関数。

  • _Key_equality
    この順序なしのマップの等価比較関数。

  • _Allocator
    この順序なしのマップのアロケーター。

  • _Begin
    コピーする要素範囲内の最初の要素の位置。

  • _End
    コピーする要素範囲を超える最初の要素の位置。

  • _Umap
    要素のコピー元または移動元の concurrent_unordered_map オブジェクト。

解説

すべてのコンストラクターは、アロケーター オブジェクト _Allocator を保存し、順序なしのマップを初期化します。

最初のコンストラクターは、空の初期マップを指定し、明示的にバケット、ハッシュ関数、等価性を確認する関数および使用するアロケーターの型の数を指定します。

2 番目のコンストラクターは、順序なしのマップにアロケーターを指定します。

3 つ目のコンストラクターは、反復子範囲 [_Begin, _End) で指定された値を指定します。

4 つ目と 5 つ目のコンストラクターは、同時実行順序なしのマップ _Umapのコピーを指定します。

最後のコンストラクターは、同時実行順序なしのマップ _Umapの移動を指定します。

必要条件

ヘッダー: concurrent_unordered_map.h

名前空間: concurrency

参照

関連項目

concurrent_unordered_map クラス