aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash.h
diff options
context:
space:
mode:
authortender-bum <tender-bum@yandex-team.ru>2022-02-10 16:50:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:01 +0300
commit4aef354b224559d2b031487a10d4f5cc6e82e95a (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/hash.h
parentc78b06a63de7beec995c1007bc5332bdf3d75b69 (diff)
downloadydb-4aef354b224559d2b031487a10d4f5cc6e82e95a.tar.gz
Restoring authorship annotation for <tender-bum@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash.h')
-rw-r--r--util/generic/hash.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h
index c6478487d5..e46db21fa9 100644
--- a/util/generic/hash.h
+++ b/util/generic/hash.h
@@ -615,10 +615,10 @@ public:
deinitialize_buckets(buckets);
}
- size_type size() const noexcept {
+ size_type size() const noexcept {
return num_elements;
}
- size_type max_size() const noexcept {
+ size_type max_size() const noexcept {
return size_type(-1);
}
@@ -1521,13 +1521,13 @@ public:
// See hash_ut.cpp
public:
- size_type size() const noexcept {
+ size_type size() const noexcept {
return rep.size();
}
- yssize_t ysize() const noexcept {
+ yssize_t ysize() const noexcept {
return (yssize_t)rep.size();
}
- size_type max_size() const noexcept {
+ size_type max_size() const noexcept {
return rep.max_size();
}