構築、破棄、コピー

次の表は、concurrent_unordered_map テンプレート・クラスと concurrent_unordered_multimap テンプレート・クラスのメンバーの情報を提供します。

concurrent_unordered_map

メンバー 説明
explicit concurrent_unordered_map(size_type n = <implementation-defined>, const hasher& hf = hasher(), const key_equal& eql = key_equal(), const allocator_type& a = allocator_type())

n バケットのテーブルを構築します。

template <typename InputIterator> concurrent_unordered_map (InputIterator first, InputIterator last, size_type n = <implementation-defined>, const hasher& hf = hasher(), const key_equal& eql = key_equal(), const allocator_type& a = allocator_type())

value_type(*i) で初期化された n バケットのテーブルを構築します。ここで、i は半開区間 [first,last) です。

concurrent_unordered_map(const concurrent_unordered_map& m)

マップ m のコピーを構築します。

concurrent_unordered_map(const Alloc& a)

アロケーター a を使用して空のマップを構築します。

concurrent_unordered_map(const concurrent_unordered_map& m, const Alloc& a)

アロケーター a を使用してマップ m のコピーを構築します。

concurrent_unordered_map(std::initializer_list<value_type> il, size_type n = <implementation-defined>, const Hasher& hf = hasher(), const key_equal& eql = key_equal(), const allocator_type& a = allocator_type())

C++11 仕様。concurrent_unordered_map(il.begin(), il.end(), n, hf, eql, a) と等価です。

concurrent_unordered_map(concurrent_unordered_map&& m)

C++11 仕様。m のコンテンツを移動することにより新しいテーブルを構築します。m は無指定の状態のままですが、安全に破棄することができます。

concurrent_unordered_map(concurrent_unordered_map&& m, const Alloc& a)

C++11 仕様。指定されたアロケーターを使って m のコンテンツを移動することにより新しいテーブルを構築します。m は無指定の状態のままですが、安全に破棄することができます。

~concurrent_unordered_map()

マップを破棄します。

concurrent_unordered_map& operator=(const concurrent_unordered_map& m);

m のコンテンツを *this に代入します。

戻り値: 計算後の *this への参照。

concurrent_unordered_map& operator=(concurrent_unordered_map&& m);

C++11 仕様。m から *this にデータを移動します。m は無指定の状態のままですが、安全に破棄することができます。

戻り値: 計算後の *this への参照。

concurrent_unordered_map& operator=(std::initializer_list<value_type> il);

C++11 仕様。il のコンテンツを *this に代入します。

戻り値: 計算後の *this への参照。

allocator_type get_allocator() const;

*this に関連付けられているアロケーターのコピーを返します。

concurrent_unordered_multimap

メンバー 説明
explicit concurrent_unordered_multimap(size_type n = <implementation-defined>, const hasher& hf = hasher(), const key_equal& eql = key_equal(), const allocator_type& a = allocator_type())

n バケットのテーブルを構築します。

template <typename InputIterator> concurrent_unordered_multimap(InputIterator first, InputIterator last, size_type n = <implementation-defined>, const hasher& hf = hasher(), const key_equal& eql = key_equal(), const allocator_type& a = allocator_type())

value_type(*i) で初期化された n バケットのテーブルを構築します。ここで、i は半開区間 [first,last) です。

concurrent_unordered_multimap(const concurrent_unordered_multimap& m)

マルチマップ m のコピーを構築します。

concurrent_unordered_multimap(const Alloc& a)

アロケーター a を使用して空のマルチマップを構築します。

concurrent_unordered_multimap(const concurrent_unordered_multimap&, const Alloc& a)

アロケーター a を使用してマルチマップ m のコピーを構築します。

concurrent_unordered_multimap(std::initializer_list<value_type> il, size_type n = <implementation-defined>, const Hasher& hf = hasher(), const key_equal& eql = key_equal(), const allocator_type& a = allocator_type())

C++11 仕様。concurrent_unordered_multimap(il.begin(), il.end(), n, hf, eql, a) と等価です。

concurrent_unordered_multimap(concurrent_unordered_multimap&& m)

C++11 仕様。m のコンテンツを移動することにより新しいテーブルを構築します。m は無指定の状態のままですが、安全に破棄することができます。

concurrent_unordered_multimap(concurrent_unordered_multimap&& m, const Alloc& a)

C++11 仕様。指定されたアロケーターを使って m のコンテンツを移動することにより新しいテーブルを構築します。m は無指定の状態のままですが、安全に破棄することができます。

~concurrent_unordered_multimap()

マルチマップを破棄します。

concurrent_unordered_multimap& operator=(const concurrent_unordered_multimap& m);

m のコンテンツを *this に代入します。

戻り値: 計算後の *this への参照。

concurrent_unordered_multimap& operator=(concurrent_unordered_multimap&& m);

C++11 仕様。m から *this にデータを移動します。m は無指定の状態のままですが、安全に破棄することができます。

戻り値: 計算後の *this への参照。

concurrent_unordered_multimap& operator=( std::initializer_list<value_type> il);

C++11 仕様。il のコンテンツを *this に代入します。

戻り値: 計算後の *this への参照。

allocator_type get_allocator() const;

*this に関連付けられているアロケーターのコピーを返します。