| /oneTBB/test/tbb/ |
| H A D | test_concurrent_vector.cpp | 209 allocator_type allocator; in test_scoped_allocator() 400 template <typename allocator_type> 593 allocator_type::init_counters(); 596 REQUIRE( allocator_type::allocations == allocator_type::frees ); 597 REQUIRE( allocator_type::items_allocated == allocator_type::items_freed ); 598 REQUIRE( allocator_type::items_constructed == allocator_type::items_destroyed ); 613 allocator_type::init_counters(); 639 allocator_type::set_limits(1); 652 allocator_type::init_counters(); 653 allocator_type::set_limits(0); [all …]
|
| H A D | test_concurrent_hash_map.cpp | 246 typename Table::allocator_type a = c.get_allocator(); in Examine() 280 ch_map c4( il, compare, typename ch_map::allocator_type()); in TypeTester() 315 typename ch_map::allocator_type>; in TypeTester() 398 allocator_type allocator; in TestScopedAllocator() 480 template <typename container_type, typename iterator_type, typename allocator_type> 508 template<typename element_type, typename allocator_type> 778 allocator_type::set_limits(1); 806 allocator_type::set_limits(0); 812 allocator_type::init_counters(); 813 allocator_type::set_limits(300); [all …]
|
| H A D | test_concurrent_queue.cpp | 171 using allocator_type = StaticSharedCountingAllocator<std::allocator<int>>; typedef 172 using queue_type = tbb::concurrent_queue<int, allocator_type>; 179 allocator_type::set_limits(1); 187 allocator_type::init_counters(); 188 allocator_type::set_limits(1);
|
| H A D | test_concurrent_priority_queue.cpp | 108 …t TOO_LARGE_SZ = std::vector<MyThrowingType, typename CPQExTestType::allocator_type>{}.max_size() … in test_exceptions() 192 …using allocator_type = std::allocator_traits<basic_allocator_type>::template rebind_alloc<allocato… in test_scoped_allocator() typedef 193 …bb::concurrent_priority_queue<allocator_data_type, std::less<allocator_data_type>, allocator_type>; in test_scoped_allocator() 195 allocator_type allocator; in test_scoped_allocator()
|
| /oneTBB/test/common/ |
| H A D | containers_common.h | 25 using allocator_type = typename ContainerType::allocator_type; in test_allocator_traits() local 26 using allocator_traits_type = std::allocator_traits<allocator_type>; in test_allocator_traits() 36 …allocator_type alloc(propagated_on_copy, propagated_on_move, propagated_on_swap, selected_on_copy); in test_allocator_traits() 76 using allocator_type = typename ContainerType::allocator_type; 77 using allocator_traits_type = std::allocator_traits<allocator_type>; 80 allocator_type alloc; 87 using allocator_type = typename ContainerType::allocator_type; 88 allocator_type alloc;
|
| H A D | container_move_support.h | 359 using allocator_type = ArenaAllocator<T, POCMA>; member 364 allocator_type allocator; 377 using allocator_type = typename arena_fixture_type::allocator_type; member 382 allocator_type& source_allocator; 383 allocator_type& dst_allocator; 398 allocator_type source_allocator_copy(source_allocator); in TwoMemoryArenasFixture() 399 allocator_type dst_allocator_copy(dst_allocator); in TwoMemoryArenasFixture() 572 …using allocator_type = StaticSharedCountingAllocator<typename allocator_fixture_type::allocator_ty… member 601 using allocator_type = typename move_fixture_type::container_type::allocator_type; member 712 using allocator_type = std::allocator<FooWithAssign>; in test_move_assignment_POCMA_true_stateless_allocator() local [all …]
|
| H A D | iterator.h | 31 typedef std::allocator<T> allocator_type; typedef 32 typedef std::allocator_traits<allocator_type> allocator_traits_type; 112 typedef std::allocator<T> allocator_type; typedef 113 typedef std::allocator_traits<allocator_type> allocator_traits_type; 139 typedef std::allocator<T> allocator_type; typedef 140 typedef std::allocator_traits<allocator_type> allocator_traits_type; 197 typedef std::allocator<T> allocator_type; typedef 198 typedef std::allocator_traits<allocator_type> allocator_traits_type;
|
| H A D | allocator_stl_test_common.h | 25 void TestSequence(const typename Container::allocator_type &a) { in TestSequence() 41 void TestSet(const typename Set::allocator_type &a) { in TestSet() 52 void TestMap(const typename Map::allocator_type &a) { in TestMap()
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | concurrent_priority_queue.h | 50 using allocator_type = Allocator; variable 54 explicit concurrent_priority_queue( const allocator_type& alloc ) in concurrent_priority_queue() 60 …concurrent_priority_queue( const Compare& compare, const allocator_type& alloc = allocator_type() ) 66 …oncurrent_priority_queue( size_type init_capacity, const allocator_type& alloc = allocator_type() ) 73 …( size_type init_capacity, const Compare& compare, const allocator_type& alloc = allocator_type() ) 81 … begin, InputIterator end, const Compare& compare, const allocator_type& alloc = allocator_type() ) 90 …ity_queue( InputIterator begin, InputIterator end, const allocator_type& alloc = allocator_type() ) 93 …zer_list<value_type> init, const Compare& compare, const allocator_type& alloc = allocator_type() ) 96 …ity_queue( std::initializer_list<value_type> init, const allocator_type& alloc = allocator_type() ) 225 allocator_type get_allocator() const { return data.get_allocator(); } in get_allocator() [all …]
|
| H A D | concurrent_unordered_set.h | 32 using allocator_type = Allocator; member 58 using allocator_type = typename base_type::allocator_type; variable 88 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>& source )… in merge() 93 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>&& source … in merge() 98 …void merge( concurrent_unordered_multiset<key_type, OtherHash, OtherKeyEqual, allocator_type>& sou… in merge() 103 …void merge( concurrent_unordered_multiset<key_type, OtherHash, OtherKeyEqual, allocator_type>&& so… in merge() 197 using allocator_type = typename base_type::allocator_type; variable 227 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>& source )… in merge() 232 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>&& source … in merge() 237 …void merge( concurrent_unordered_multiset<key_type, OtherHash, OtherKeyEqual, allocator_type>& sou… in merge() [all …]
|
| H A D | concurrent_queue.h | 65 using allocator_type = Allocator; variable 72 concurrent_queue() : concurrent_queue(allocator_type()) {} in concurrent_queue() 74 explicit concurrent_queue(const allocator_type& a) : in concurrent_queue() 87 …current_queue(InputIterator begin, InputIterator end, const allocator_type& a = allocator_type()) : 94 …ent_queue( std::initializer_list<value_type> init, const allocator_type& alloc = allocator_type() … 224 allocator_type get_allocator() const { return my_allocator; } in get_allocator() 340 using allocator_type = Allocator; variable 349 explicit concurrent_bounded_queue( const allocator_type& a ) : in concurrent_bounded_queue() 365 …unded_queue( InputIterator begin, InputIterator end, const allocator_type& a = allocator_type() ) : 372 …ded_queue( std::initializer_list<value_type> init, const allocator_type& alloc = allocator_type() … [all …]
|
| H A D | concurrent_unordered_map.h | 33 using allocator_type = Allocator; member 60 using allocator_type = typename base_type::allocator_type; variable 77 …concurrent_unordered_map( const concurrent_unordered_map& other, const allocator_type& alloc ) : b… in concurrent_unordered_map() 141 …ncurrent_unordered_map<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_type>& source ) { in merge() 146 …current_unordered_map<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_type>&& source ) { in merge() 151 …ent_unordered_multimap<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_type>& source ) { in merge() 156 …nt_unordered_multimap<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_type>&& source ) { in merge() 259 using allocator_type = typename base_type::allocator_type; variable 302 …ncurrent_unordered_map<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_type>& source ) { in merge() 307 …current_unordered_map<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_type>&& source ) { in merge() [all …]
|
| H A D | concurrent_set.h | 40 using allocator_type = Allocator; member 64 using allocator_type = Allocator; variable 82 …concurrent_set( const concurrent_set& other, const allocator_type& alloc ) : base_type(other, allo… in concurrent_set() 84 …concurrent_set( concurrent_set&& other, const allocator_type& alloc ) : base_type(std::move(other)… in concurrent_set() 165 using allocator_type = Allocator; variable 183 …concurrent_multiset( const concurrent_multiset& other, const allocator_type& alloc ) : base_type(o… in concurrent_multiset() 185 …concurrent_multiset( concurrent_multiset&& other, const allocator_type& alloc ) : base_type(std::m… in concurrent_multiset()
|
| H A D | concurrent_map.h | 42 using allocator_type = Allocator; member 81 using allocator_type = Allocator; variable 99 …concurrent_map( const concurrent_map& other, const allocator_type& alloc ) : base_type(other, allo… in concurrent_map() 101 …concurrent_map( concurrent_map&& other, const allocator_type& alloc ) : base_type(std::move(other)… in concurrent_map() 231 using allocator_type = Allocator; variable 250 …concurrent_multimap( const concurrent_multimap& other, const allocator_type& alloc ) : base_type(o… in concurrent_multimap() 252 …concurrent_multimap( concurrent_multimap&& other, const allocator_type& alloc ) : base_type(std::m… in concurrent_multimap()
|
| H A D | concurrent_vector.h | 264 using allocator_type = Allocator; variable 281 concurrent_vector() : concurrent_vector(allocator_type()) {} in concurrent_vector() 283 explicit concurrent_vector( const allocator_type& alloc ) noexcept in concurrent_vector() 288 const allocator_type& alloc = allocator_type() ) 298 explicit concurrent_vector( size_type count, const allocator_type& alloc = allocator_type() ) 309 …t_vector( InputIterator first, InputIterator last, const allocator_type& alloc = allocator_type() ) 329 concurrent_vector( const concurrent_vector& other, const allocator_type& alloc ) in concurrent_vector() 336 concurrent_vector( concurrent_vector&& other, const allocator_type& alloc ) in concurrent_vector() 341 const allocator_type& alloc = allocator_type() ) 478 allocator_type get_allocator() const { in get_allocator() [all …]
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _node_handle.h | 50 using allocator_type = Allocator; 53 using allocator_traits_type = tbb::detail::allocator_traits<allocator_type>; 81 allocator_type get_allocator() const { in get_allocator() 101 allocator_type my_allocator; 111 using allocator_type = typename base_type::allocator_type; variable 137 using allocator_type = typename base_type::allocator_type; variable
|
| H A D | _concurrent_unordered_base.h | 195 using allocator_type = typename traits_type::allocator_type; variable 198 using allocator_traits_type = tbb::detail::allocator_traits<allocator_type>; 240 using node_type = node_handle<key_type, value_type, value_node_type, allocator_type>; 243 … const key_equal& equal = key_equal(), const allocator_type& alloc = allocator_type() ) 253 concurrent_unordered_base( size_type bucket_count, const allocator_type& alloc ) in concurrent_unordered_base() 259 explicit concurrent_unordered_base( const allocator_type& alloc ) in concurrent_unordered_base() 265 … const key_equal& equal = key_equal(), const allocator_type& alloc = allocator_type() ) 273 size_type bucket_count, const allocator_type& alloc ) in concurrent_unordered_base() 337 const allocator_type& alloc = allocator_type() ) 341 size_type bucket_count, const allocator_type& alloc ) in concurrent_unordered_base() [all …]
|
| H A D | _segment_table.h | 51 using allocator_type = Allocator; variable 53 using allocator_traits_type = tbb::detail::allocator_traits<allocator_type>; 62 segment_table( const allocator_type& alloc = allocator_type() ) 84 segment_table( const segment_table& other, const allocator_type& alloc ) in segment_table() 106 segment_table( segment_table&& other, const allocator_type& alloc ) in segment_table() 398 void internal_move_construct_with_allocator( segment_table&& other, const allocator_type&, in internal_move_construct_with_allocator() argument 405 void internal_move_construct_with_allocator( segment_table&& other, const allocator_type& alloc, in internal_move_construct_with_allocator()
|
| H A D | _concurrent_skip_list.h | 249 using allocator_type = typename container_traits::allocator_type; variable 250 using allocator_traits_type = tbb::detail::allocator_traits<allocator_type>; 255 static_assert(std::is_same<value_type, typename allocator_type::value_type>::value, 267 using node_type = d1::node_handle<key_type, value_type, list_node_type, allocator_type>; 290 …cit concurrent_skip_list( const key_compare& comp, const allocator_type& alloc = allocator_type() ) 293 explicit concurrent_skip_list( const allocator_type& alloc ) in concurrent_skip_list() 298 const allocator_type& alloc = allocator_type() ) 309 const allocator_type& alloc = allocator_type() ) 324 concurrent_skip_list( const concurrent_skip_list& other, const allocator_type& alloc ) in concurrent_skip_list() 339 concurrent_skip_list( concurrent_skip_list&& other, const allocator_type& alloc ) in concurrent_skip_list() [all …]
|
| /oneTBB/test/conformance/ |
| H A D | conformance_concurrent_set.cpp | 44 …static_assert(std::is_same<typename default_container_type::allocator_type, oneapi::tbb::tbb_alloc… in test_member_types() 64 static_assert(std::is_same<typename container_type::allocator_type, test_allocator_type>::value, in test_member_types() 72 using allocator_type = typename container_type::allocator_type; in test_member_types() typedef 73 …ame<typename container_type::pointer, typename std::allocator_traits<allocator_type>::pointer>::va… in test_member_types() 75 …pename container_type::const_pointer, typename std::allocator_traits<allocator_type>::const_pointe… in test_member_types()
|
| H A D | conformance_concurrent_queue.cpp | 107 allocator_type::init_counters(); in TestFullQueue() 125 CHECK(allocator_type::items_allocated == allocator_type::items_freed); in TestFullQueue() 126 CHECK(allocator_type::allocations == allocator_type::frees); in TestFullQueue() 138 allocator_type::init_counters(); in TestClear() 1088 using allocator_type = typename container_type::allocator_type; in test_member_types() typedef 1720 using allocator_type = typename QueueType::allocator_type; in TestMoveQueue() typedef 1726 allocator_type::init_counters(); in TestMoveQueue() 1732 allocator_type::init_counters(); in TestMoveQueue() 1737 allocator_type::init_counters(); in TestMoveQueue() 1778 using allocator_type = typename QueueType::allocator_type; in TestMoveQueueUnequal() typedef [all …]
|
| H A D | conformance_concurrent_map.cpp | 62 …static_assert(std::is_same<typename default_container_type::allocator_type, oneapi::tbb::tbb_alloc… in test_member_types() 84 static_assert(std::is_same<typename container_type::allocator_type, test_allocator_type>::value, in test_member_types() 92 using allocator_type = typename container_type::allocator_type; in test_member_types() typedef 93 …ame<typename container_type::pointer, typename std::allocator_traits<allocator_type>::pointer>::va… in test_member_types() 95 …pename container_type::const_pointer, typename std::allocator_traits<allocator_type>::const_pointe… in test_member_types()
|
| H A D | conformance_concurrent_unordered_set.cpp | 48 …static_assert(std::is_same<typename default_container_type::allocator_type, oneapi::tbb::tbb_alloc… in test_member_types() 77 static_assert(std::is_same<typename container_type::allocator_type, test_allocator_type>::value, in test_member_types() 85 using allocator_type = typename container_type::allocator_type; in test_member_types() typedef 86 …ame<typename container_type::pointer, typename std::allocator_traits<allocator_type>::pointer>::va… in test_member_types() 88 …pename container_type::const_pointer, typename std::allocator_traits<allocator_type>::const_pointe… in test_member_types()
|
| H A D | conformance_concurrent_unordered_map.cpp | 61 static_assert(std::is_same<typename default_container_type::allocator_type, in test_member_types() 94 static_assert(std::is_same<typename container_type::allocator_type, test_allocator_type>::value, in test_member_types() 102 using allocator_type = typename container_type::allocator_type; in test_member_types() typedef 103 …ame<typename container_type::pointer, typename std::allocator_traits<allocator_type>::pointer>::va… in test_member_types() 105 …pename container_type::const_pointer, typename std::allocator_traits<allocator_type>::const_pointe… in test_member_types()
|
| H A D | conformance_allocators.cpp | 65 tbb_alloc.allocator_type(); 75 Allocator::malloc_type a_type = tbb_alloc.allocator_type();
|