From f0cccbe3285c039553e1fd8b5a5c7830d6087974 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 6 Mar 2025 22:56:56 +0100 Subject: Replace ASL_MOVE, ASL_FWD, and ASL_FWD_LIKE by their std:: equivalent This is because some compiler stuff and diagnostics tools rely on those symboles being what they are. --- asl/containers/hash_set.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'asl/containers/hash_set.hpp') diff --git a/asl/containers/hash_set.hpp b/asl/containers/hash_set.hpp index 6c46aac..61346fa 100644 --- a/asl/containers/hash_set.hpp +++ b/asl/containers/hash_set.hpp @@ -115,7 +115,7 @@ protected: *size += 1; } - values[result.first_available_index].construct_unsafe(ASL_MOVE(value)); + values[result.first_available_index].construct_unsafe(std::move(value)); tags[result.first_available_index] = result.tag; } @@ -144,7 +144,7 @@ protected: { if ((m_tags[i] & kHasValue) == 0) { continue; } - insert_inner(ASL_MOVE(m_values[i].as_init_unsafe()), new_tags, new_values, new_capacity, &new_size); + insert_inner(std::move(m_values[i].as_init_unsafe()), new_tags, new_values, new_capacity, &new_size); // Destroy now so that destroy() has less things to do m_values[i].destroy_unsafe(); @@ -312,7 +312,7 @@ public: {} explicit constexpr hash_set(Allocator allocator) - : m_allocator{ASL_MOVE(allocator)} + : m_allocator{std::move(allocator)} {} hash_set(const hash_set& other) @@ -339,7 +339,7 @@ public: , m_values{exchange(other.m_values, nullptr)} , m_capacity{exchange(other.m_capacity, 0)} , m_size{exchange(other.m_size, 0)} - , m_allocator{ASL_MOVE(other.m_allocator)} + , m_allocator{std::move(other.m_allocator)} {} hash_set& operator=(hash_set&& other) @@ -351,7 +351,7 @@ public: m_values = exchange(other.m_values, nullptr); m_capacity = exchange(other.m_capacity, 0); m_size = exchange(other.m_size, 0); - m_allocator = ASL_MOVE(other.m_allocator); + m_allocator = std::move(other.m_allocator); } return *this; } @@ -393,7 +393,7 @@ public: { maybe_grow_to_fit_one_more(); ASL_ASSERT(m_size < max_size()); - insert_inner(ASL_MOVE(T{ASL_FWD(args)...}), m_tags, m_values, m_capacity, &m_size); + insert_inner(T{std::forward(args)...}, m_tags, m_values, m_capacity, &m_size); } template -- cgit