Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 25 of 37) sorted by relevance

12

/oneTBB/test/common/
H A Dcontainers_common.h47 c1.swap(c2); in test_allocator_traits()
52 using std::swap; in test_allocator_traits()
53 swap(c1, c2); in test_allocator_traits()
94 container1.swap(container2);
96 using std::swap;
97 swap(container1, container2);
H A Dnode_handling_support.h113 nh3.swap(nh2); in test_node_handle()
121 using std::swap; in test_node_handle()
122 swap(nh2, nh3); in test_node_handle()
131 nh3.swap(empty_node); in test_node_handle()
136 swap(empty_node, nh3); in test_node_handle()
141 empty_node.swap(nh3); in test_node_handle()
H A Dcustom_allocators.h64 friend void swap( ArenaAllocator& lhs, ArenaAllocator& rhs ) { in swap() function
65 using std::swap; in swap()
66 swap(lhs.my_data, rhs.my_data); in swap()
570 void swap( PropagatingAllocator<Allocator, POCMA, POCCA, POCS>& lhs,
H A Dcommon_arena_constraints.h113 std::swap(cpuset, src.cpuset);
134 std::swap(cpuset, src.cpuset);
H A Dconcurrent_lru_cache_common.h113 std::swap(this->my_p_count, other.my_p_count);
H A Dutils.h184 using std::swap;
185 template <typename T> using is_swappable = decltype(swap(std::declval<T&>(), std::declval<T&>()));
/oneTBB/include/oneapi/tbb/detail/
H A D_node_handle.h75 void swap( node_handle_base& nh ) { in swap() function
76 using std::swap; in swap()
77 swap(my_node, nh.my_node); in swap()
153 void swap( node_handle<Key, Value, Node, Allocator>& lhs, in swap() function
155 return lhs.swap(rhs); in swap()
H A D_allocator_traits.h89 using std::swap;
90 swap(lhs, rhs);
H A D_template_helpers.h249 using std::swap;
252 using has_swap = decltype(swap(std::declval<T&>(), std::declval<T&>()));
258 static const bool value = noexcept(swap(std::declval<T&>(), std::declval<T&>()));
264 struct is_nothrow_swappable_impl : std::integral_constant<bool, noexcept(swap(std::declval<T&>(), s…
H A D_concurrent_unordered_base.h387 …void swap( concurrent_unordered_base& other ) noexcept(unordered_segment_table::is_noexcept_swap) { in swap() function
1431 using std::swap; in internal_swap_fields()
1432 swap(my_max_load_factor, other.my_max_load_factor); in internal_swap_fields()
1433 swap(my_hash_compare, other.my_hash_compare); in internal_swap_fields()
1434 my_segments.swap(other.my_segments); in internal_swap_fields()
/oneTBB/include/oneapi/tbb/
H A Dconcurrent_queue.h180 void swap ( concurrent_queue& other ) { in swap() function
239 using std::swap; in internal_swap()
240 swap(my_queue_representation, src.my_queue_representation); in internal_swap()
270 friend void swap( concurrent_queue& lhs, concurrent_queue& rhs ) { in swap() function
271 lhs.swap(rhs); in swap()
459 void swap ( concurrent_bounded_queue& other ) { in swap() function
550 std::swap(my_queue_representation, src.my_queue_representation); in internal_swap()
551 std::swap(my_monitors, src.my_monitors); in internal_swap()
664 friend void swap( concurrent_bounded_queue& lhs, concurrent_bounded_queue& rhs ) { in swap() function
665 lhs.swap(rhs); in swap()
H A Dconcurrent_priority_queue.h213 void swap( concurrent_priority_queue& other ) { in swap() function
215 using std::swap; in swap()
216 swap(data, other.data); in swap()
217 swap(mark, other.mark); in swap()
476 void swap( concurrent_priority_queue<T, Compare, Allocator>& lhs, in swap() function
479 lhs.swap(rhs); in swap()
H A Dconcurrent_set.h149 void swap( concurrent_set<Key, Compare, Allocator>& lhs, in swap() function
152 lhs.swap(rhs); in swap()
249 void swap( concurrent_multiset<Key, Compare, Allocator>& lhs, in swap() function
252 lhs.swap(rhs); in swap()
H A Dglobal_control.h132 std::swap(m_ctl, other.m_ctl); in task_scheduler_handle()
135 std::swap(m_ctl, other.m_ctl);
H A Dconcurrent_map.h214 void swap( concurrent_map<Key, Value, Compare, Allocator>& lhs, in swap() function
217 lhs.swap(rhs); in swap()
332 void swap( concurrent_multimap<Key, Value, Compare, Allocator>& lhs, in swap() function
335 lhs.swap(rhs); in swap()
H A Dconcurrent_unordered_set.h178 void swap( concurrent_unordered_set<Key, Hash, KeyEqual, Allocator>& lhs, in swap() function
180 lhs.swap(rhs); in swap()
316 void swap( concurrent_unordered_multiset<Key, Hash, KeyEqual, Allocator>& lhs, in swap() function
318 lhs.swap(rhs); in swap()
H A Dconcurrent_unordered_map.h239 void swap( concurrent_unordered_map<Key, T, Hash, KeyEqual, Allocator>& lhs, in swap() function
241 lhs.swap(rhs); in swap()
397 void swap( concurrent_unordered_multimap<Key, T, Hash, KeyEqual, Allocator>& lhs, in swap() function
399 lhs.swap(rhs); in swap()
H A Denumerable_thread_specific.h335 using std::swap;
337 swap(my_key, other.my_key);
940 using std::swap;
942 swap(my_construct_callback, other.my_construct_callback);
945 swap(my_locals, other.my_locals);
H A Dconcurrent_vector.h522 void swap(concurrent_vector& other) noexcept(is_noexcept_swap) { in swap() function
523 base_type::swap(other); in swap()
1056 void swap(concurrent_vector<T, Allocator> &lhs, in swap() function
1059 lhs.swap(rhs); in swap()
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DDivide_and_Conquer.rst75 swap( *begin, mid[-1] );
94 swap( *begin, mid[-1] );
112 swap( *begin, mid[-1] );
/oneTBB/examples/common/utility/
H A Dutility.hpp160 this->swap(a); in operator =()
163 void swap(argument& other) { in swap() function in utility::internal::argument
164 std::swap(p_type, other.p_type); in swap()
165 std::swap(matched_, other.matched_); in swap()
/oneTBB/examples/parallel_reduce/primes/
H A Dprimes.cpp139 std::swap(my_striker, other.my_striker); in move()
140 std::swap(my_is_composite, other.my_is_composite); in move()
/oneTBB/test/tbb/
H A Dtest_concurrent_vector.cpp298 c.swap( c2 ); in Examine()
301 c.swap( c2 ); in Examine()
450 std::swap(local_operations[i - 1], local_operations[j]); in TestConcurrentOperationsWithUnSafeOperations()
683 swap(vec1, vec2);
H A Dtest_concurrent_hash_map.cpp234 c2.swap( c ); in Examine()
239 swap( c, c2 ); in Examine()
830 swap(map1, map2);
/oneTBB/doc/main/intro/
H A DBenefits.rst79 - The expression ``swap(*i,*j)`` swaps two elements.

12