構築、破棄、コピー

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

concurrent_unordered_set

メンバー 説明
explicit concurrent_unordered_set(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_set (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_set(const unordered_set& m)

セット m のコピーを構築します。

concurrent_unordered_set(const Alloc& a)

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

concurrent_unordered_set(const unordered_set&, const Alloc& a)

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

concurrent_unordered_set(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_set(il.begin(), il.end(), n, hf, eql, a) と等価です。

concurrent_unorderd_set(concurrent_unorderd_set&& m)

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

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

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

~concurrent_unordered_set()

セットを破棄します。

concurrent_unordered_set& operator=(const concurrent_unordered_set& m);

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

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

concurrent_unordered_set& operator=(concurrent_unordered_set&& m);

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

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

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

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

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

allocator_type get_allocator() const;

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

concurrent_unordered_multiset

メンバー 説明
explicit concurrent_unordered_multiset(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_multiset (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_multiset(const unordered_multiset& m)

セット m のコピーを構築します。

concurrent_unordered_multiset(const Alloc&a)

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

concurrent_unordered_multiset(const unordered_multiset&, const Alloc& a)

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

concurrent_unordered_multiset(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_multiset(il.begin(), il.end(), n, hf, eql, a) と等価です。

concurrent_unorderd_multiset(concurrent_unorderd_multiset&& m)

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

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

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

~concurrent_unordered_multiset()

セットを破棄します。

concurrent_unordered_multiset& operator=( const concurrent_unordered_multiset& m);

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

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

concurrent_unordered_multiset& operator=( concurrent_unordered_multiset&& m);

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

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

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

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

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

allocator_type get_allocator() const;

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