aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysaveload.h
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit4b839d0704ee9be1dabb0310a1f03af24963637b (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/ysaveload.h
parentf773626848a7c7456803654292e716b83d69cc12 (diff)
downloadydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/ysaveload.h')
-rw-r--r--util/ysaveload.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/ysaveload.h b/util/ysaveload.h
index 630c7646d8..02efb4049b 100644
--- a/util/ysaveload.h
+++ b/util/ysaveload.h
@@ -21,7 +21,7 @@ public:
* pointer types cannot be serialized as POD-type
*/
enum {
- IsSerializablePod = TTypeTraits<T>::IsPod && !std::is_pointer<T>::value
+ IsSerializablePod = TTypeTraits<T>::IsPod && !std::is_pointer<T>::value
};
};
@@ -218,17 +218,17 @@ struct TRangeSerialize<It, false> {
template <class It>
static inline void SaveRange(IOutputStream* rh, It b, It e) {
- TRangeSerialize<It, std::is_pointer<It>::value>::Save(rh, b, e);
+ TRangeSerialize<It, std::is_pointer<It>::value>::Save(rh, b, e);
}
template <class It>
static inline void LoadRange(IInputStream* rh, It b, It e) {
- TRangeSerialize<It, std::is_pointer<It>::value>::Load(rh, b, e);
+ TRangeSerialize<It, std::is_pointer<It>::value>::Load(rh, b, e);
}
template <class It, class TStorage>
static inline void LoadRange(IInputStream* rh, It b, It e, TStorage& pool) {
- TRangeSerialize<It, std::is_pointer<It>::value>::Load(rh, b, e, pool);
+ TRangeSerialize<It, std::is_pointer<It>::value>::Load(rh, b, e, pool);
}
template <class T>
@@ -383,19 +383,19 @@ class TSerializer<std::deque<T, A>>: public TVectorSerializer<std::deque<T, A>>
};
template <class TArray>
-class TStdArraySerializer {
+class TStdArraySerializer {
public:
static inline void Save(IOutputStream* rh, const TArray& a) {
- ::SaveArray(rh, a.data(), a.size());
+ ::SaveArray(rh, a.data(), a.size());
}
static inline void Load(IInputStream* rh, TArray& a) {
- ::LoadArray(rh, a.data(), a.size());
+ ::LoadArray(rh, a.data(), a.size());
}
};
template <class T, size_t N>
-class TSerializer<std::array<T, N>>: public TStdArraySerializer<std::array<T, N>> {
+class TSerializer<std::array<T, N>>: public TStdArraySerializer<std::array<T, N>> {
};
template <class A, class B>