diff options
author | osado <osado@yandex-team.ru> | 2022-02-10 16:49:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:18 +0300 |
commit | 58cd0b86ed99a72df22479e26a20bc1c1e57e65e (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/scheme/util/utils.h | |
parent | 3ed175181ceac225ee14e4519492ad2967a7bd73 (diff) | |
download | ydb-58cd0b86ed99a72df22479e26a20bc1c1e57e65e.tar.gz |
Restoring authorship annotation for <osado@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/scheme/util/utils.h')
-rw-r--r-- | library/cpp/scheme/util/utils.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/scheme/util/utils.h b/library/cpp/scheme/util/utils.h index 6613215305..f7d666f67a 100644 --- a/library/cpp/scheme/util/utils.h +++ b/library/cpp/scheme/util/utils.h @@ -1,23 +1,23 @@ -#pragma once - +#pragma once + #include <library/cpp/scheme/scheme.h> - -#include <util/generic/strbuf.h> -#include <util/ysaveload.h> - -namespace NScUtils { - -void CopyField(const NSc::TValue& from, NSc::TValue& to); - -template <typename... Args> -void CopyField(const NSc::TValue& from, NSc::TValue& to, TStringBuf path, Args... args) { - CopyField(from[path], to[path], args...); -} - -} // namespace NScUtils - -template<> -struct TSerializer<NSc::TValue> { - static void Save(IOutputStream* out, const NSc::TValue& v); - static void Load(IInputStream* in, NSc::TValue& v); -}; + +#include <util/generic/strbuf.h> +#include <util/ysaveload.h> + +namespace NScUtils { + +void CopyField(const NSc::TValue& from, NSc::TValue& to); + +template <typename... Args> +void CopyField(const NSc::TValue& from, NSc::TValue& to, TStringBuf path, Args... args) { + CopyField(from[path], to[path], args...); +} + +} // namespace NScUtils + +template<> +struct TSerializer<NSc::TValue> { + static void Save(IOutputStream* out, const NSc::TValue& v); + static void Load(IInputStream* in, NSc::TValue& v); +}; |