diff options
author | Bradley C. Kuszmaul <kuszmaul@gmail.com> | 2023-05-31 16:06:22 -0400 |
---|---|---|
committer | Bradley C. Kuszmaul <kuszmaul@gmail.com> | 2023-05-31 16:10:59 -0400 |
commit | 182925b7c0ef7a1cca7982c1a9e0c81fafa58266 (patch) | |
tree | 3966e8b485a90bcce2bea6c9f2c7a52aa51bba32 /absl/container/internal/raw_hash_set.cc | |
parent | 8c466401a346d11b946b7b83cf6870d71383331c (diff) | |
download | abseil-182925b7c0ef7a1cca7982c1a9e0c81fafa58266.tar.gz abseil-182925b7c0ef7a1cca7982c1a9e0c81fafa58266.tar.bz2 abseil-182925b7c0ef7a1cca7982c1a9e0c81fafa58266.zip |
Convert `raw_hash_set` comments from imperative to indicative mood.
https://google.github.io/styleguide/cppguide.html#Function_Comments
Diffstat (limited to 'absl/container/internal/raw_hash_set.cc')
-rw-r--r-- | absl/container/internal/raw_hash_set.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/absl/container/internal/raw_hash_set.cc b/absl/container/internal/raw_hash_set.cc index b91d5a47..1ccee1ed 100644 --- a/absl/container/internal/raw_hash_set.cc +++ b/absl/container/internal/raw_hash_set.cc @@ -107,21 +107,22 @@ FindInfo find_first_non_full_outofline(const CommonFields& common, return find_first_non_full(common, hash); } -// Return address of the ith slot in slots where each slot occupies slot_size. +// Returns the address of the ith slot in slots where each slot occupies +// slot_size. static inline void* SlotAddress(void* slot_array, size_t slot, size_t slot_size) { return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(slot_array) + (slot * slot_size)); } -// Return the address of the slot just after slot assuming each slot -// has the specified size. +// Returns the address of the slot just after slot assuming each slot has the +// specified size. static inline void* NextSlot(void* slot, size_t slot_size) { return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(slot) + slot_size); } -// Return the address of the slot just before slot assuming each slot -// has the specified size. +// Returns the address of the slot just before slot assuming each slot has the +// specified size. static inline void* PrevSlot(void* slot, size_t slot_size) { return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(slot) - slot_size); } |