24 #ifndef __TBB_concurrent_unordered_set_H 25 #define __TBB_concurrent_unordered_set_H 32 namespace interface5 {
35 template<
typename Key,
typename Hash_compare,
typename Allocator,
bool Allow_multimapping>
42 typedef typename Allocator::template rebind<value_type>::other
allocator_type;
55 template <
typename Key,
typename Hasher = tbb::tbb_hash<Key>,
typename Key_equality = std::equal_to<Key>,
typename Allocator = tbb::tbb_allocator<Key> >
56 class concurrent_unordered_set :
public internal::concurrent_unordered_base< concurrent_unordered_set_traits<Key, internal::hash_compare<Key, Hasher, Key_equality>, Allocator, false> >
59 typedef internal::hash_compare<Key, Hasher, Key_equality>
hash_compare;
61 typedef internal::concurrent_unordered_base< traits_type >
base_type;
67 using base_type::insert;
78 typedef typename base_type::pointer
pointer;
108 template <
typename Iterator>
116 template <
typename Iterator>
123 template <
typename Iterator>
130 #if __TBB_INITIALIZER_LISTS_PRESENT 136 insert(il.begin(),il.end());
142 insert(il.begin(), il.end());
148 insert(il.begin(), il.end());
151 #endif //# __TBB_INITIALIZER_LISTS_PRESENT 153 #if __TBB_CPP11_RVALUE_REF_PRESENT 154 #if !__TBB_IMPLICIT_MOVE_PRESENT 161 return static_cast<concurrent_unordered_set&>(base_type::operator=(table));
170 return static_cast<concurrent_unordered_set&>(base_type::operator=(
std::move(table)));
177 #endif //__TBB_CPP11_RVALUE_REF_PRESENT 185 template <
typename Key,
typename Hasher = tbb::tbb_hash<Key>,
typename Key_equality = std::equal_to<Key>,
186 typename Allocator = tbb::tbb_allocator<Key> >
188 public internal::concurrent_unordered_base< concurrent_unordered_set_traits<Key,
189 internal::hash_compare<Key, Hasher, Key_equality>, Allocator, true> >
192 typedef internal::hash_compare<Key, Hasher, Key_equality>
hash_compare;
194 typedef internal::concurrent_unordered_base< traits_type >
base_type;
195 #if __TBB_EXTRA_DEBUG 200 using base_type::insert;
243 template <
typename Iterator>
252 template <
typename Iterator>
259 template <
typename Iterator>
267 #if __TBB_INITIALIZER_LISTS_PRESENT 273 insert(il.begin(),il.end());
279 insert(il.begin(), il.end());
286 insert(il.begin(), il.end());
289 #endif //# __TBB_INITIALIZER_LISTS_PRESENT 291 #if __TBB_CPP11_RVALUE_REF_PRESENT 292 #if !__TBB_IMPLICIT_MOVE_PRESENT 299 return static_cast<concurrent_unordered_multiset&>(base_type::operator=(table));
308 return static_cast<concurrent_unordered_multiset&>(base_type::operator=(
std::move(table)));
316 #endif //__TBB_CPP11_RVALUE_REF_PRESENT 324 using interface5::concurrent_unordered_set;
325 using interface5::concurrent_unordered_multiset;
329 #endif// __TBB_concurrent_unordered_set_H
Hash_compare hash_compare
concurrent_unordered_set(size_type n_of_buckets=base_type::initial_bucket_number, const hasher &a_hasher=hasher(), const key_equal &a_keyeq=key_equal(), const allocator_type &a=allocator_type())
base_type::const_reference const_reference
concurrent_unordered_multiset(const concurrent_unordered_multiset &table, const Allocator &a)
base_type::iterator local_iterator
base_type::const_pointer const_pointer
concurrent_unordered_set(Iterator first, Iterator last, size_type n_of_buckets, const hasher &a_hasher, const allocator_type &a)
base_type::const_iterator const_local_iterator
static const Key & get_key(const value_type &value)
base_type::const_pointer const_pointer
auto last(Container &c) -> decltype(begin(c))
base_type::const_iterator const_iterator
concurrent_unordered_multiset(std::initializer_list< value_type > il, size_type n_of_buckets, const hasher &a_hasher, const allocator_type &a)
internal::hash_compare< Key, Hasher, Key_equality > hash_compare
concurrent_unordered_set(concurrent_unordered_set &&table, const Allocator &a)
__TBB_IMPLICIT_MOVE_PRESENT
base_type::allocator_type allocator_type
base_type::value_type value_type
concurrent_unordered_multiset(size_type n_of_buckets, const allocator_type &a)
concurrent_unordered_set(const concurrent_unordered_set &table, const Allocator &a)
auto first(Container &c) -> decltype(begin(c))
Class for determining type of std::allocator<T>::value_type.
internal::hash_compare< Key, Hasher, Key_equality > hash_compare
concurrent_unordered_multiset(const Allocator &a)
concurrent_unordered_set_traits()
base_type::const_iterator const_iterator
internal::concurrent_unordered_base< traits_type > base_type
concurrent_unordered_set(std::initializer_list< value_type > il, size_type n_of_buckets, const allocator_type &a)
base_type::size_type size_type
base_type::reference reference
base_type::iterator iterator
concurrent_unordered_set(const Allocator &a)
concurrent_unordered_multiset(concurrent_unordered_multiset &&table, const Allocator &a)
__TBB_IMPLICIT_MOVE_PRESENT
concurrent_unordered_multiset(Iterator first, Iterator last, size_type n_of_buckets, const allocator_type &a)
internal::concurrent_unordered_base< traits_type > base_type
base_type::allocator_type allocator_type
base_type::difference_type difference_type
void move(tbb_thread &t1, tbb_thread &t2)
base_type::reference reference
base_type::iterator iterator
concurrent_unordered_base & operator=(const concurrent_unordered_base &right)
concurrent_unordered_set_traits< Key, hash_compare, Allocator, false > traits_type
base_type::const_reference const_reference
concurrent_unordered_set_traits(const hash_compare &hc)
concurrent_unordered_multiset(Iterator first, Iterator last, size_type n_of_buckets, const hasher &a_hasher, const allocator_type &a)
base_type::value_type value_type
static const size_type initial_bucket_number
concurrent_unordered_set(size_type n_of_buckets, const allocator_type &a)
concurrent_unordered_multiset(std::initializer_list< value_type > il, size_type n_of_buckets, const allocator_type &a)
hash_compare my_hash_compare
base_type::difference_type difference_type
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long value
concurrent_unordered_multiset(size_type n_of_buckets, const hasher &a_hasher, const allocator_type &a)
concurrent_unordered_set(Iterator first, Iterator last, size_type n_of_buckets=base_type::initial_bucket_number, const hasher &a_hasher=hasher(), const key_equal &a_keyeq=key_equal(), const allocator_type &a=allocator_type())
concurrent_unordered_set(std::initializer_list< value_type > il, size_type n_of_buckets, const hasher &a_hasher, const allocator_type &a)
base_type::const_iterator const_local_iterator
concurrent_unordered_set(size_type n_of_buckets, const hasher &a_hasher, const allocator_type &a)
base_type::pointer pointer
concurrent_unordered_multiset(Iterator first, Iterator last, size_type n_of_buckets=base_type::initial_bucket_number, const hasher &a_hasher=hasher(), const key_equal &a_keyeq=key_equal(), const allocator_type &a=allocator_type())
std::pair< iterator, bool > insert(const value_type &value)
concurrent_unordered_multiset(size_type n_of_buckets=base_type::initial_bucket_number, const hasher &a_hasher=hasher(), const key_equal &a_keyeq=key_equal(), const allocator_type &a=allocator_type())
base_type::iterator local_iterator
concurrent_unordered_set(Iterator first, Iterator last, size_type n_of_buckets, const allocator_type &a)
base_type::pointer pointer
base_type::size_type size_type
Allocator::template rebind< value_type >::other allocator_type
concurrent_unordered_set_traits< Key, hash_compare, Allocator, true > traits_type