diff options
| author | mihaild <[email protected]> | 2022-02-10 16:46:59 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:59 +0300 | 
| commit | 55fa8c7df8dba9a6fda8a807e529a9d04bd88580 (patch) | |
| tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/cache | |
| parent | 246417ad6168d3f7ab4a0cf1c79ba4259f7c45ae (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/cache')
| -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 503f11c4e6a..6dc997076d9 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) { | 
