diff options
author | dprokoptsev <dprokoptsev@yandex-team.ru> | 2022-02-10 16:50:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:05 +0300 |
commit | 94e596fdab09d4aeb51a3d27767959d8ed030a3d (patch) | |
tree | 9efd85ff3b6369cf556bfb78b67b233e11d02ff6 /util/ysaveload.h | |
parent | 64407caacb4d68aeabc6afe1ddd28750bf7522f4 (diff) | |
download | ydb-94e596fdab09d4aeb51a3d27767959d8ed030a3d.tar.gz |
Restoring authorship annotation for <dprokoptsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/ysaveload.h')
-rw-r--r-- | util/ysaveload.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/ysaveload.h b/util/ysaveload.h index 02efb4049b..938c82d6ff 100644 --- a/util/ysaveload.h +++ b/util/ysaveload.h @@ -398,16 +398,16 @@ template <class T, size_t N> class TSerializer<std::array<T, N>>: public TStdArraySerializer<std::array<T, N>> { }; -template <class A, class B> +template <class A, class B> class TSerializer<std::pair<A, B>> { using TPair = std::pair<A, B>; - + public: static inline void Save(IOutputStream* rh, const TPair& p) { ::Save(rh, p.first); ::Save(rh, p.second); } - + static inline void Load(IInputStream* rh, TPair& p) { ::Load(rh, p.first); ::Load(rh, p.second); @@ -418,8 +418,8 @@ public: ::Load(rh, p.first, pool); ::Load(rh, p.second, pool); } -}; - +}; + template <class T> struct TTupleSerializer { template <class F, class Tuple, size_t... Indices> |