diff options
author | mihaild <mihaild@yandex-team.ru> | 2022-02-10 16:46:59 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:59 +0300 |
commit | 246417ad6168d3f7ab4a0cf1c79ba4259f7c45ae (patch) | |
tree | 2a65611ade91c8ae2f55647107c1a11ea743abd5 /library/cpp/cache/cache.h | |
parent | 5598c5e7bc7619bd51d87fea7b880b7788ad0b47 (diff) | |
download | ydb-246417ad6168d3f7ab4a0cf1c79ba4259f7c45ae.tar.gz |
Restoring authorship annotation for <mihaild@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/cache/cache.h')
-rw-r--r-- | library/cpp/cache/cache.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/cache/cache.h b/library/cpp/cache/cache.h index 6dc997076d..503f11c4e6 100644 --- a/library/cpp/cache/cache.h +++ b/library/cpp/cache/cache.h @@ -6,7 +6,7 @@ #include <util/generic/hash_set.h> #include <util/generic/vector.h> #include <util/generic/yexception.h> -#include <utility> +#include <utility> template <class TValue> struct TUniformSizeProvider { @@ -471,8 +471,8 @@ public: return true; } - bool Insert(const std::pair<TKey, TValue>& p) { - return Insert(p.first, p.second); + bool Insert(const std::pair<TKey, TValue>& p) { + return Insert(p.first, p.second); } bool Insert(const TKey& key, const TValue& value) { @@ -551,13 +551,13 @@ protected: bool MultiValue; TIterator FindByItem(TItem* item) { - std::pair<TIndexIterator, TIndexIterator> p = Index.equal_range(*item); + std::pair<TIndexIterator, TIndexIterator> p = Index.equal_range(*item); // we have to delete the exact unlinked item (there may be multiple items for one key) TIndexIterator it; - for (it = p.first; it != p.second; ++it) + for (it = p.first; it != p.second; ++it) if (&*it == item) break; - return (it == p.second ? End() : TIterator(it)); + return (it == p.second ? End() : TIterator(it)); } void EraseFromIndex(TItem* item) { |