diff options
author | pacefist <pacefist@yandex-team.ru> | 2022-02-10 16:50:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:19 +0300 |
commit | 1b93b0d524d4c7a90f7741e61c47886723764b24 (patch) | |
tree | 5def995ff4705b19112edcd848dbe5dbbeb3d6d9 /library | |
parent | 42d219fbd63ee173b0cb7db1b26a3ec615f0bb71 (diff) | |
download | ydb-1b93b0d524d4c7a90f7741e61c47886723764b24.tar.gz |
Restoring authorship annotation for <pacefist@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/cache/cache.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/cache/cache.h b/library/cpp/cache/cache.h index 6dc997076d..59a602660e 100644 --- a/library/cpp/cache/cache.h +++ b/library/cpp/cache/cache.h @@ -406,18 +406,18 @@ public: } TIterator& operator++() { - ++Iter; - return *this; - } - - const TKey& Key() const { - return Iter->Key; - } - - const TValue& Value() const { - return Iter->Value; - } - + ++Iter; + return *this; + } + + const TKey& Key() const { + return Iter->Key; + } + + const TValue& Value() const { + return Iter->Value; + } + friend class TCache<TKey, TValue, TListType, TDeleter>; private: @@ -439,10 +439,10 @@ public: return Index.size(); } - TIterator Begin() const { - return TIterator(Index.begin()); - } - + TIterator Begin() const { + return TIterator(Index.begin()); + } + TIterator End() const { return TIterator(Index.end()); } @@ -454,10 +454,10 @@ public: return TIterator(it); } - TIterator FindWithoutPromote(const TKey& key) const { - return TIterator(Index.find(TItem(key))); - } - + TIterator FindWithoutPromote(const TKey& key) const { + return TIterator(Index.find(TItem(key))); + } + // note: it shouldn't touch 'value' if it returns false. bool PickOut(const TKey& key, TValue* value) { Y_ASSERT(value); |