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 | cf94099c3ea704df29c11dfb77e2adec41a6708d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/ysaveload.h | |
parent | 94e596fdab09d4aeb51a3d27767959d8ed030a3d (diff) | |
download | ydb-cf94099c3ea704df29c11dfb77e2adec41a6708d.tar.gz |
Restoring authorship annotation for <dprokoptsev@yandex-team.ru>. Commit 2 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 938c82d6ff..02efb4049b 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> |