diff options
Diffstat (limited to 'absl/container')
-rw-r--r-- | absl/container/inlined_vector.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/absl/container/inlined_vector.h b/absl/container/inlined_vector.h index b6063441a0e9..c2f9d44b8c67 100644 --- a/absl/container/inlined_vector.h +++ b/absl/container/inlined_vector.h @@ -799,8 +799,8 @@ class InlinedVector { } private: - template <typename Hash, typename OtherT, size_t OtherN, typename OtherA> - friend Hash AbslHashValue(Hash, const InlinedVector<OtherT, OtherN, OtherA>&); + template <typename Hash, typename TheT, size_t TheN, typename TheA> + friend Hash AbslHashValue(Hash, const InlinedVector<TheT, TheN, TheA>& vec); // Holds whether the vector is allocated or not in the lowest bit and the size // in the high bits: @@ -1339,10 +1339,10 @@ bool operator>=(const InlinedVector<T, N, A>& a, return !(a < b); } -template <typename Hash, typename T, size_t N, typename A> -Hash AbslHashValue(Hash hash, const InlinedVector<T, N, A>& inlined_vector) { - auto p = inlined_vector.data(); - auto n = inlined_vector.size(); +template <typename Hash, typename TheT, size_t TheN, typename TheA> +Hash AbslHashValue(Hash hash, const InlinedVector<TheT, TheN, TheA>& vec) { + auto p = vec.data(); + auto n = vec.size(); return Hash::combine(Hash::combine_contiguous(std::move(hash), p, n), n); } |