@@ -402,7 +402,7 @@ template <typename Hash, typename KeyEqual>
402402__device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::insert(
403403 value_type const & insert_pair, Hash hash, KeyEqual key_equal) noexcept
404404{
405- auto current_slot{initial_slot (insert_pair.first , hash)};
405+ auto current_slot{this -> initial_slot (insert_pair.first , hash)};
406406
407407 while (true ) {
408408 key_type const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -439,7 +439,7 @@ __device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::i
439439
440440 // if we couldn't insert the key, but it wasn't a duplicate, then there must
441441 // have been some other key there, so we keep looking for a slot
442- current_slot = next_slot (current_slot);
442+ current_slot = this -> next_slot (current_slot);
443443 }
444444}
445445
@@ -538,7 +538,7 @@ template <typename CG, typename Hash, typename KeyEqual>
538538__device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::insert(
539539 CG const & g, value_type const & insert_pair, Hash hash, KeyEqual key_equal) noexcept
540540{
541- auto current_slot = initial_slot (g, insert_pair.first , hash);
541+ auto current_slot = this -> initial_slot (g, insert_pair.first , hash);
542542
543543 while (true ) {
544544 key_type const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -592,7 +592,7 @@ __device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::i
592592 // if there are no empty slots in the current bucket,
593593 // we move onto the next bucket
594594 else {
595- current_slot = next_slot (g, current_slot);
595+ current_slot = this -> next_slot (g, current_slot);
596596 }
597597 }
598598}
@@ -602,7 +602,7 @@ template <typename Hash, typename KeyEqual>
602602__device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::erase(
603603 key_type const & k, Hash hash, KeyEqual key_equal) noexcept
604604{
605- auto current_slot{initial_slot (k, hash)};
605+ auto current_slot{this -> initial_slot (k, hash)};
606606
607607 value_type const insert_pair =
608608 make_pair<Key, Value>(this ->get_erased_key_sentinel (), this ->get_empty_value_sentinel ());
@@ -641,7 +641,7 @@ __device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::e
641641 }
642642 }
643643
644- current_slot = next_slot (current_slot);
644+ current_slot = this -> next_slot (current_slot);
645645 }
646646}
647647
@@ -650,7 +650,7 @@ template <typename CG, typename Hash, typename KeyEqual>
650650__device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::erase(
651651 CG const & g, key_type const & k, Hash hash, KeyEqual key_equal) noexcept
652652{
653- auto current_slot = initial_slot (g, k, hash);
653+ auto current_slot = this -> initial_slot (g, k, hash);
654654 value_type const insert_pair =
655655 make_pair<Key, Value>(this ->get_erased_key_sentinel (), this ->get_empty_value_sentinel ());
656656
@@ -699,7 +699,7 @@ __device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::e
699699 // empty slot found, but key not found, must not be in the map
700700 if (g.ballot (slot_is_empty)) { return false ; }
701701
702- current_slot = next_slot (g, current_slot);
702+ current_slot = this -> next_slot (g, current_slot);
703703 }
704704}
705705
@@ -710,7 +710,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(Key const& k,
710710 Hash hash,
711711 KeyEqual key_equal) noexcept
712712{
713- auto current_slot = initial_slot (k, hash);
713+ auto current_slot = this -> initial_slot (k, hash);
714714
715715 while (true ) {
716716 auto const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -722,7 +722,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(Key const& k,
722722 // Key exists, return iterator to location
723723 if (key_equal (existing_key, k)) { return current_slot; }
724724
725- current_slot = next_slot (current_slot);
725+ current_slot = this -> next_slot (current_slot);
726726 }
727727}
728728
@@ -733,7 +733,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(Key const& k,
733733 Hash hash,
734734 KeyEqual key_equal) const noexcept
735735{
736- auto current_slot = initial_slot (k, hash);
736+ auto current_slot = this -> initial_slot (k, hash);
737737
738738 while (true ) {
739739 auto const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -745,7 +745,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(Key const& k,
745745 // Key exists, return iterator to location
746746 if (key_equal (existing_key, k)) { return current_slot; }
747747
748- current_slot = next_slot (current_slot);
748+ current_slot = this -> next_slot (current_slot);
749749 }
750750}
751751
@@ -757,7 +757,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(CG g,
757757 Hash hash,
758758 KeyEqual key_equal) noexcept
759759{
760- auto current_slot = initial_slot (g, k, hash);
760+ auto current_slot = this -> initial_slot (g, k, hash);
761761
762762 while (true ) {
763763 auto const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -783,7 +783,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(CG g,
783783
784784 // otherwise, all slots in the current bucket are full with other keys, so we move onto the
785785 // next bucket
786- current_slot = next_slot (g, current_slot);
786+ current_slot = this -> next_slot (g, current_slot);
787787 }
788788}
789789
@@ -795,7 +795,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(CG g,
795795 Hash hash,
796796 KeyEqual key_equal) const noexcept
797797{
798- auto current_slot = initial_slot (g, k, hash);
798+ auto current_slot = this -> initial_slot (g, k, hash);
799799
800800 while (true ) {
801801 auto const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -823,7 +823,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(CG g,
823823 // otherwise, all slots in the current bucket are full with other keys,
824824 // so we move onto the next bucket in the current submap
825825
826- current_slot = next_slot (g, current_slot);
826+ current_slot = this -> next_slot (g, current_slot);
827827 }
828828}
829829
@@ -832,7 +832,7 @@ template <typename ProbeKey, typename Hash, typename KeyEqual>
832832__device__ bool static_map<Key, Value, Scope, Allocator>::device_view::contains(
833833 ProbeKey const & k, Hash hash, KeyEqual key_equal) const noexcept
834834{
835- auto current_slot = initial_slot (k, hash);
835+ auto current_slot = this -> initial_slot (k, hash);
836836
837837 while (true ) {
838838 auto const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -841,7 +841,7 @@ __device__ bool static_map<Key, Value, Scope, Allocator>::device_view::contains(
841841
842842 if (key_equal (existing_key, k)) { return true ; }
843843
844- current_slot = next_slot (current_slot);
844+ current_slot = this -> next_slot (current_slot);
845845 }
846846}
847847
@@ -853,7 +853,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::contains(CG const& g,
853853 Hash hash,
854854 KeyEqual key_equal) const noexcept
855855{
856- auto current_slot = initial_slot (g, k, hash);
856+ auto current_slot = this -> initial_slot (g, k, hash);
857857
858858 while (true ) {
859859 key_type const existing_key = current_slot->first .load (cuda::std::memory_order_relaxed);
@@ -872,7 +872,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::contains(CG const& g,
872872
873873 // otherwise, all slots in the current bucket are full with other keys, so we move onto the
874874 // next bucket
875- current_slot = next_slot (g, current_slot);
875+ current_slot = this -> next_slot (g, current_slot);
876876 }
877877}
878878} // namespace cuco::legacy
0 commit comments