diff options
author | Oleg Sidorkin <[email protected]> | 2022-02-10 16:49:36 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:36 +0300 |
commit | 5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (patch) | |
tree | f16a3558ca40d453a1c6a2ed764bd75d64cffade /library/cpp/containers/flat_hash | |
parent | cd33f9aa8461f8e2b0b9e68efbb6bc9856197dc9 (diff) |
Restoring authorship annotation for Oleg Sidorkin <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/flat_hash')
-rw-r--r-- | library/cpp/containers/flat_hash/flat_hash.h | 2 | ||||
-rw-r--r-- | library/cpp/containers/flat_hash/lib/iterator.h | 8 | ||||
-rw-r--r-- | library/cpp/containers/flat_hash/lib/map.h | 22 |
3 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/containers/flat_hash/flat_hash.h b/library/cpp/containers/flat_hash/flat_hash.h index 582b8ae8f5d..0fad098a592 100644 --- a/library/cpp/containers/flat_hash/flat_hash.h +++ b/library/cpp/containers/flat_hash/flat_hash.h @@ -42,7 +42,7 @@ using TDenseHashSetImpl = namespace NFH { -/* flat_map: Fast and highly customizable hash map. +/* flat_map: Fast and highly customizable hash map. * * Most features would be available soon. * Until that time we strongly insist on using only class aliases listed below. diff --git a/library/cpp/containers/flat_hash/lib/iterator.h b/library/cpp/containers/flat_hash/lib/iterator.h index f6b1e74355d..bec518481bc 100644 --- a/library/cpp/containers/flat_hash/lib/iterator.h +++ b/library/cpp/containers/flat_hash/lib/iterator.h @@ -65,10 +65,10 @@ public: return &Cont_->Node(Idx_); } - const pointer operator->() const { - return &Cont_->Node(Idx_); - } - + const pointer operator->() const { + return &Cont_->Node(Idx_); + } + bool operator==(const TIterator& rhs) const noexcept { Y_ASSERT(Cont_ == rhs.Cont_); return Idx_ == rhs.Idx_; diff --git a/library/cpp/containers/flat_hash/lib/map.h b/library/cpp/containers/flat_hash/lib/map.h index f77c318a615..42fa0dda35c 100644 --- a/library/cpp/containers/flat_hash/lib/map.h +++ b/library/cpp/containers/flat_hash/lib/map.h @@ -4,8 +4,8 @@ #include "concepts/iterator.h" #include <util/generic/algorithm.h> -#include <util/generic/mapfindptr.h> - +#include <util/generic/mapfindptr.h> + namespace NFlatHash { namespace NPrivate { @@ -34,15 +34,15 @@ class TMap : private TTable<Hash, NPrivate::TMapKeyGetter, Probing, SizeFitter, - Expander>, - public TMapOps<TMap<Key, - T, - Hash, - KeyEqual, - Container, - Probing, - SizeFitter, - Expander>> + Expander>, + public TMapOps<TMap<Key, + T, + Hash, + KeyEqual, + Container, + Probing, + SizeFitter, + Expander>> { private: using TBase = TTable<Hash, |