Rename PreferredParamType to PreferredMoveParamType PiperOrigin-RevId: 1008313205
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h index 3a5a1ca..bc350a7 100644 --- a/absl/container/internal/raw_hash_set.h +++ b/absl/container/internal/raw_hash_set.h
@@ -2415,7 +2415,7 @@ }; template <class T, class Alloc = std::allocator<T>> -using PreferredParamType = +using PreferredMoveParamType = typename std::conditional_t<IsAllocMoveSameAsCopy<T, Alloc>::value, AddConstRefIfExpensive<T>, std::add_rvalue_reference<T>>::type; @@ -3111,8 +3111,8 @@ // // flat_hash_map<std::string, int> s; // s.insert({"abc", 42}); - std::pair<iterator, bool> insert(PreferredParamType<init_type, Alloc> value) - ABSL_ATTRIBUTE_LIFETIME_BOUND + std::pair<iterator, bool> insert(PreferredMoveParamType<init_type, Alloc> + value) ABSL_ATTRIBUTE_LIFETIME_BOUND #if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L requires(!IsLifetimeBoundAssignmentFrom<init_type>::value) #endif @@ -3120,8 +3120,9 @@ return emplace(std::move(value)); } #if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L - std::pair<iterator, bool> insert(PreferredParamType<init_type, Alloc> value - ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY_THIS) + std::pair<iterator, bool> insert( + PreferredMoveParamType<init_type, Alloc> value + ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY_THIS) ABSL_ATTRIBUTE_LIFETIME_BOUND requires(IsLifetimeBoundAssignmentFrom<init_type>::value) { @@ -3155,7 +3156,8 @@ return insert(value).first; } - iterator insert(const_iterator, PreferredParamType<init_type, Alloc> value) + iterator insert(const_iterator, + PreferredMoveParamType<init_type, Alloc> value) ABSL_ATTRIBUTE_LIFETIME_BOUND { return insert(std::move(value)).first; }