diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-05-14 00:23:11 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-05-14 00:41:51 +0200 |
commit | f7a2699ac0cbb2824862439a72f23013436484de (patch) | |
tree | 8e8c63332b8b4ae188a3f41391cadf16145bbed5 /asl/containers/hash_map.hpp | |
parent | 088e03708afe4145a1903f0b20c53cab1899ad50 (diff) |
Add and use copy_const_t
Diffstat (limited to 'asl/containers/hash_map.hpp')
-rw-r--r-- | asl/containers/hash_map.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asl/containers/hash_map.hpp b/asl/containers/hash_map.hpp index dc140eb..a6d72dd 100644 --- a/asl/containers/hash_map.hpp +++ b/asl/containers/hash_map.hpp @@ -147,7 +147,7 @@ public: auto get(this auto&& self, const U& value) requires key_hasher<KeyHasher, U> && key_comparator<KeyComparator, K, U> { - using return_type = un_ref_t<copy_cref_t<decltype(self), V>>*; + using return_type = copy_const_t<un_ref_t<decltype(self)>, V>*; isize_t index = self.find_slot_lookup(value); if (index >= 0) { |