From 08e32c4257ae144acc160b099124a869908bb997 Mon Sep 17 00:00:00 2001 From: Michael Khlopin Date: Sat, 28 Nov 2020 01:54:40 +0300 Subject: [PATCH] Using of qualified eastl move() and forward() functions. (#405) --- include/EASTL/internal/hashtable.h | 8 ++++---- include/EASTL/internal/red_black_tree.h | 8 ++++---- include/EASTL/utility.h | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/EASTL/internal/hashtable.h b/include/EASTL/internal/hashtable.h index 21767f3d..6dc12cd7 100644 --- a/include/EASTL/internal/hashtable.h +++ b/include/EASTL/internal/hashtable.h @@ -2702,7 +2702,7 @@ namespace eastl hashtable::try_emplace(const key_type& key, Args&&... args) { return DoInsertValue(has_unique_keys_type(), piecewise_construct, forward_as_tuple(key), - forward_as_tuple(forward(args)...)); + forward_as_tuple(eastl::forward(args)...)); } template ::try_emplace(key_type&& key, Args&&... args) { return DoInsertValue(has_unique_keys_type(), piecewise_construct, forward_as_tuple(eastl::move(key)), - forward_as_tuple(forward(args)...)); + forward_as_tuple(eastl::forward(args)...)); } template (args)...))); + value_type(piecewise_construct, forward_as_tuple(key), forward_as_tuple(eastl::forward(args)...))); return DoGetResultIterator(has_unique_keys_type(), result); } @@ -2737,7 +2737,7 @@ namespace eastl { insert_return_type result = DoInsertValue(has_unique_keys_type(), value_type(piecewise_construct, forward_as_tuple(eastl::move(key)), - forward_as_tuple(forward(args)...))); + forward_as_tuple(eastl::forward(args)...))); return DoGetResultIterator(has_unique_keys_type(), result); } diff --git a/include/EASTL/internal/red_black_tree.h b/include/EASTL/internal/red_black_tree.h index 8e9eda07..553bb5c8 100644 --- a/include/EASTL/internal/red_black_tree.h +++ b/include/EASTL/internal/red_black_tree.h @@ -1105,7 +1105,7 @@ namespace eastl inline eastl::pair::iterator, bool> rbtree::try_emplace(const key_type& key, Args&&... args) { - return DoInsertValue(has_unique_keys_type(), piecewise_construct, forward_as_tuple(key), forward_as_tuple(forward(args)...)); + return DoInsertValue(has_unique_keys_type(), piecewise_construct, forward_as_tuple(key), forward_as_tuple(eastl::forward(args)...)); } template @@ -1113,7 +1113,7 @@ namespace eastl inline eastl::pair::iterator, bool> rbtree::try_emplace(key_type&& key, Args&&... args) { - return DoInsertValue(has_unique_keys_type(), piecewise_construct, forward_as_tuple(eastl::move(key)), forward_as_tuple(forward(args)...)); + return DoInsertValue(has_unique_keys_type(), piecewise_construct, forward_as_tuple(eastl::move(key)), forward_as_tuple(eastl::forward(args)...)); } template @@ -1123,7 +1123,7 @@ namespace eastl { return DoInsertValueHint( has_unique_keys_type(), position, - piecewise_construct, forward_as_tuple(key), forward_as_tuple(forward(args)...)); + piecewise_construct, forward_as_tuple(key), forward_as_tuple(eastl::forward(args)...)); } template @@ -1133,7 +1133,7 @@ namespace eastl { return DoInsertValueHint( has_unique_keys_type(), position, - piecewise_construct, forward_as_tuple(eastl::move(key)), forward_as_tuple(forward(args)...)); + piecewise_construct, forward_as_tuple(eastl::move(key)), forward_as_tuple(eastl::forward(args)...)); } diff --git a/include/EASTL/utility.h b/include/EASTL/utility.h index 4f6c357d..cc546fb0 100644 --- a/include/EASTL/utility.h +++ b/include/EASTL/utility.h @@ -789,7 +789,7 @@ namespace eastl template static EA_CONSTEXPR T1&& getInternal(pair&& p) { - return forward(p.first); + return eastl::forward(p.first); } }; @@ -811,7 +811,7 @@ namespace eastl template static EA_CONSTEXPR T2&& getInternal(pair&& p) { - return forward(p.second); + return eastl::forward(p.second); } }; @@ -830,7 +830,7 @@ namespace eastl template tuple_element_t>&& get(pair&& p) { - return GetPair::getInternal(move(p)); + return GetPair::getInternal(eastl::move(p)); } #endif // EASTL_TUPLE_ENABLED