diff options
| author | iaz1607 <[email protected]> | 2022-02-10 16:45:37 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:37 +0300 | 
| commit | 94e51c602b555459333b3c6ae92476c424c930bc (patch) | |
| tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/generic/hash_ut.cpp | |
| parent | e5437feb4ac2d2dc044e1090b9312dde5ef197e0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash_ut.cpp')
| -rw-r--r-- | util/generic/hash_ut.cpp | 28 | 
1 files changed, 14 insertions, 14 deletions
diff --git a/util/generic/hash_ut.cpp b/util/generic/hash_ut.cpp index e88425cbf11..0551d587708 100644 --- a/util/generic/hash_ut.cpp +++ b/util/generic/hash_ut.cpp @@ -559,20 +559,20 @@ void THashTest::TestHMSetEmplace() {      public:          TKey(NTesting::TProbeState* state, int key)              : TProbe(state) -            , Key_(key)  +            , Key_(key)          {          }          operator size_t() const { -            return THash<int>()(Key_);  +            return THash<int>()(Key_);          }          bool operator==(const TKey& other) const { -            return Key_ == other.Key_;  +            return Key_ == other.Key_;          }      private: -        int Key_;  +        int Key_;      };      NTesting::TProbeState state; @@ -791,27 +791,27 @@ public:      };      TCountingAllocator() -        : Counters_(nullptr)  +        : Counters_(nullptr)      {      }      TCountingAllocator(TAllocatorCounters* counters) -        : Counters_(counters)  +        : Counters_(counters)      {          Y_ASSERT(counters);      }      template <class Other>      TCountingAllocator(const TCountingAllocator<Other>& other) -        : Counters_(other.Counters)  +        : Counters_(other.Counters)      {      }      T* allocate(size_type n) {          auto result = base_type::allocate(n); -        if (Counters_) {  -            ++Counters_->Allocations;  +        if (Counters_) { +            ++Counters_->Allocations;              Counters_->Chunks.emplace(result, n * sizeof(T));          } @@ -819,16 +819,16 @@ public:      }      void deallocate(T* p, size_type n) { -        if (Counters_) {  -            ++Counters_->Deallocations;  -            Counters_->Chunks.erase(std::make_pair(p, n * sizeof(T)));  +        if (Counters_) { +            ++Counters_->Deallocations; +            Counters_->Chunks.erase(std::make_pair(p, n * sizeof(T)));          }          base_type::deallocate(p, n);      }  private: -    TAllocatorCounters* Counters_;  +    TAllocatorCounters* Counters_;  };  void THashTest::TestAllocation() { @@ -1264,7 +1264,7 @@ void THashTest::TestTupleHash() {      * for example      */      struct A { -        A Foo(const std::tuple<A, float>& v) {  +        A Foo(const std::tuple<A, float>& v) {              return std::get<A>(v);          }      };  | 
