diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /contrib/libs/pire/pire/partition.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/pire/pire/partition.h')
-rw-r--r-- | contrib/libs/pire/pire/partition.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/pire/pire/partition.h b/contrib/libs/pire/pire/partition.h index 85a9af8863..fd9ae6f1aa 100644 --- a/contrib/libs/pire/pire/partition.h +++ b/contrib/libs/pire/pire/partition.h @@ -37,7 +37,7 @@ namespace Pire { template<class T, class Eq> class Partition { private: - typedef TMap< T, ypair< size_t, TVector<T> > > Set; + typedef TMap< T, ypair< size_t, TVector<T> > > Set; public: Partition(const Eq& eq) @@ -103,7 +103,7 @@ public: } /// Returns the whole equivalence class of @p t (i.e. item @p i /// is returned iff representative(i) == representative(t)). - const TVector<T>& Klass(const T& t) const + const TVector<T>& Klass(const T& t) const { auto it = m_inv.find(t); if (it == m_inv.end()) @@ -143,7 +143,7 @@ public: private: Eq m_eq; Set m_set; - TMap<T, T> m_inv; + TMap<T, T> m_inv; size_t m_maxidx; void DoAppend(Set& set, const T& t) @@ -159,7 +159,7 @@ private: if (it == end) { // Begin new set - TVector<T> v(1, t); + TVector<T> v(1, t); set.insert(ymake_pair(t, ymake_pair(m_maxidx++, v))); m_inv[t] = t; } |