Construct, Destroy, Copy

The following tables provides information on the members of the concurrent_unordered_set and concurrent_unordered_multiset template classes.

concurrent_unordered_set

Member Description
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())

Constructs a table with n buckets.

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())

Constructs a table with n buckets initialized with value_type(*i) where i is in the half open interval [first,last).

concurrent_unordered_set(const unordered_set& m)

Constructs a copy of set m.

concurrent_unordered_set(const Alloc& a)

Constructs an empty set using allocator a.

concurrent_unordered_set(const unordered_set&, const Alloc& a)

Constructs a copy of set m using allocator a.

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())

Supported since C++11. Equivalent to concurrent_unordered_set(il.begin(), il.end(), n, hf, eql, a) .

concurrent_unorderd_set(concurrent_unorderd_set&& m)

Supported since C++11. Constructs a new table by moving content from m. m is left in an unspecified state, but can be safely destroyed.

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

Supported since C++11. Constructs a new table by moving content from m using specifed allocator. m is left in an unspecified state, but can be safely destroyed.

~concurrent_unordered_set()

Destroys the set.

concurrent_unordered_set& operator=(const concurrent_unordered_set& m);

Assigns contents of m to *this.

Returns: a reference to *this.

concurrent_unordered_set& operator=(concurrent_unordered_set&& m);

Supported since C++11. Moves data from m to *this. m is left in an unspecified state, but can be safely destroyed.

Returns: a reference to *this.

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

Supported since C++11. Assigns contents of il to *this.

Returns: a reference to *this.

allocator_type get_allocator() const;

Returns a copy of the allocator associated with *this.

concurrent_unordered_multiset

Member Description
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())

Constructs a table with n buckets.

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())

Constructs a table with n buckets initialized with value_type(*i) where i is in the half open interval [first,last).

concurrent_unordered_multiset(const unordered_multiset& m)

Constructs a copy of set m.

concurrent_unordered_multiset(const Alloc&a)

Constructs an empty set using allocatora.

concurrent_unordered_multiset(const unordered_multiset&, const Alloc& a)

Constructs a copy of set m using allocator a.

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())

Supported since C++11. Equivalent to concurrent_unordered_multiset(il.begin(), il.end(), n, hf, eql, a) .

concurrent_unorderd_multiset(concurrent_unorderd_multiset&& m)

Supported since C++11. Constructs a new table by moving content from m. m is left in an unspecified state, but can be safely destroyed.

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

Supported since C++11. Constructs a new table by moving content from m using specifed allocator. m is left in an unspecified state, but can be safely destroyed.

~concurrent_unordered_multiset()

Destroys the set.

concurrent_unordered_multiset& operator=( const concurrent_unordered_multiset& m);

Assigns contents of m to *this.

Returns: a reference to *this.

concurrent_unordered_multiset& operator=( concurrent_unordered_multiset&& m);

Supported since C++11. Moves data from m to *this. m is left in an unspecified state, but can be safely destroyed.

Returns: a reference to *this.

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

Supported since C++11. Assigns contents of il to *this.

Returns: a reference to *this.

allocator_type get_allocator() const;

Returns a copy of the allocator associated with *this.

For more complete information about compiler optimizations, see our Optimization Notice.