aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/binsaver
diff options
context:
space:
mode:
authora-romanov <a-romanov@yandex-team.ru>2022-02-10 16:48:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:10 +0300
commitaa2986a34bde73b2cdcea5080c4443b7cf2ba686 (patch)
tree410fbde59311309b774a0da147f79628c3429a2c /library/cpp/binsaver
parente77cfd118321c5b9c168fdee41b4e6c5706b8f68 (diff)
downloadydb-aa2986a34bde73b2cdcea5080c4443b7cf2ba686.tar.gz
Restoring authorship annotation for <a-romanov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/binsaver')
-rw-r--r--library/cpp/binsaver/bin_saver.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h
index 412424889f3..baf8abfe550 100644
--- a/library/cpp/binsaver/bin_saver.h
+++ b/library/cpp/binsaver/bin_saver.h
@@ -147,7 +147,7 @@ private:
TVector<typename AM::key_type, typename std::allocator_traits<typename AM::allocator_type>::template rebind_alloc<typename AM::key_type>> indices;
indices.resize(nSize);
TStoredSize i = 1;
- for (auto pos = data.begin(); pos != data.end(); ++pos, ++i)
+ for (auto pos = data.begin(); pos != data.end(); ++pos, ++i)
indices[nSize - i] = pos->first;
for (TStoredSize j = 0; j < nSize; ++j)
Add(1, &indices[j]);
@@ -155,7 +155,7 @@ private:
Add(2, &data[indices[j]]);
}
}
-
+
// hash_multimap
template <class AMM>
void DoAnyMultiMap(AMM& data) {
@@ -168,7 +168,7 @@ private:
for (TStoredSize i = 0; i < nSize; ++i)
Add(1, &indices[i]);
for (TStoredSize i = 0; i < nSize; ++i) {
- std::pair<typename AMM::key_type, typename AMM::mapped_type> valToInsert;
+ std::pair<typename AMM::key_type, typename AMM::mapped_type> valToInsert;
valToInsert.first = indices[i];
Add(2, &valToInsert.second);
data.insert(valToInsert);
@@ -177,9 +177,9 @@ private:
TStoredSize nSize = data.size();
CheckOverflow(nSize, data.size());
Add(3, &nSize);
- for (auto pos = data.begin(); pos != data.end(); ++pos)
+ for (auto pos = data.begin(); pos != data.end(); ++pos)
Add(1, (typename AMM::key_type*)(&pos->first));
- for (auto pos = data.begin(); pos != data.end(); ++pos)
+ for (auto pos = data.begin(); pos != data.end(); ++pos)
Add(2, &pos->second);
}
}
@@ -345,27 +345,27 @@ public:
template <class T1, class T2, class T3, class T4>
int Add(const chunk_id, TMap<T1, T2, T3, T4>* pMap) {
- DoAnyMap(*pMap);
+ DoAnyMap(*pMap);
return 0;
}
template <class T1, class T2, class T3, class T4, class T5>
int Add(const chunk_id, THashMap<T1, T2, T3, T4, T5>* pHash) {
- DoAnyMap(*pHash);
+ DoAnyMap(*pHash);
return 0;
}
template <class T1, class T2, class T3, class T4, class T5>
int Add(const chunk_id, THashMultiMap<T1, T2, T3, T4, T5>* pHash) {
- DoAnyMultiMap(*pHash);
+ DoAnyMultiMap(*pHash);
return 0;
}
template <class K, class L, class A>
int Add(const chunk_id, TSet<K, L, A>* pSet) {
- DoAnySet(*pSet);
+ DoAnySet(*pSet);
return 0;
}
template <class T1, class T2, class T3, class T4>
int Add(const chunk_id, THashSet<T1, T2, T3, T4>* pHash) {
- DoAnySet(*pHash);
+ DoAnySet(*pHash);
return 0;
}