Lines Matching refs:other

164     void table_elementwise_copy( const ets_base& other,
168 if( !other.my_root.load(std::memory_order_relaxed) ) return;
169 array* root = allocate(other.my_root.load(std::memory_order_relaxed)->lg_size);
172 my_count.store(other.my_count.load(std::memory_order_relaxed), std::memory_order_relaxed);
174 for( array* r = other.my_root.load(std::memory_order_relaxed); r; r = r->next ) {
192 void table_swap( ets_base& other ) {
193 __TBB_ASSERT(this!=&other, "Don't swap an instance with itself");
194 swap_atomics_relaxed(my_root, other.my_root);
195 swap_atomics_relaxed(my_count, other.my_count);
334 void table_swap( ets_base& other ) {
336 __TBB_ASSERT(this!=&other, "Don't swap an instance with itself");
337 swap(my_key, other.my_key);
338 super::table_swap(other);
382 …erable_thread_specific_iterator( const enumerable_thread_specific_iterator<Container, U>& other ) :
383 …my_container( other.my_container ), my_index( other.my_index), my_value( const_cast<Value *>(other
531 segmented_iterator(const segmented_iterator<SegmentedContainer, U>& other) :
532 my_segcont(other.my_segcont),
533 outer_iter(other.outer_iter),
535 inner_iter(other.inner_iter)
540 segmented_iterator& operator=( const segmented_iterator<SegmentedContainer, U>& other) {
541 my_segcont = other.my_segcont;
542 outer_iter = other.outer_iter;
543 if(outer_iter != my_segcont->end()) inner_iter = other.inner_iter;
929 void internal_copy(const enumerable_thread_specific<T, A2, C2>& other) {
931 …static_assert( (is_compatible_ets<T, typename std::decay<decltype(other)>::type>::value), "is_comp…
933 my_construct_callback = other.my_construct_callback->clone();
935 my_locals.reserve(other.size());
936 this->table_elementwise_copy( other, create_local_by_copy );
939 void internal_swap(enumerable_thread_specific& other) {
941 __TBB_ASSERT( this!=&other, nullptr);
942 swap(my_construct_callback, other.my_construct_callback);
945 swap(my_locals, other.my_locals);
946 this->ets_base<ETS_key_type>::table_swap(other);
950 void internal_move(enumerable_thread_specific<T, A2, C2>&& other) {
951 …static_assert( (is_compatible_ets<T, typename std::decay<decltype(other)>::type>::value), "is_comp…
952 my_construct_callback = other.my_construct_callback;
953 other.my_construct_callback = nullptr;
955 my_locals.reserve(other.size());
956 this->table_elementwise_copy( other, create_local_by_move );
960 enumerable_thread_specific( const enumerable_thread_specific& other )
963 internal_copy(other);
967 enumerable_thread_specific( const enumerable_thread_specific<T, Alloc, Cachetype>& other )
969 internal_copy(other);
972 enumerable_thread_specific( enumerable_thread_specific&& other ) : my_construct_callback()
975 internal_swap(other);
979 …enumerable_thread_specific( enumerable_thread_specific<T, Alloc, Cachetype>&& other ) : my_constru…
981 internal_move(std::move(other));
984 enumerable_thread_specific& operator=( const enumerable_thread_specific& other )
986 if( this != &other ) {
989 internal_copy( other );
995 …umerable_thread_specific& operator=( const enumerable_thread_specific<T, Alloc, Cachetype>& other )
997 …__TBB_ASSERT( static_cast<void*>(this)!=static_cast<const void*>(&other), nullptr); // Objects of …
1000 internal_copy(other);
1004 enumerable_thread_specific& operator=( enumerable_thread_specific&& other )
1006 if( this != &other ) {
1008 internal_swap(other);
1014 enumerable_thread_specific& operator=( enumerable_thread_specific<T, Alloc, Cachetype>&& other )
1016 …__TBB_ASSERT( static_cast<void*>(this)!=static_cast<const void*>(&other), nullptr); // Objects of …
1019 internal_move(std::move(other));