diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 11a24635da4c4f39428b182c49a7bc35e47c9534 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/split.h | |
parent | 317da38588b7898a99fd9168571408123350012b (diff) | |
download | ydb-11a24635da4c4f39428b182c49a7bc35e47c9534.tar.gz |
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/split.h')
-rw-r--r-- | util/string/split.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/string/split.h b/util/string/split.h index 626ad69cda..bc46d9e64c 100644 --- a/util/string/split.h +++ b/util/string/split.h @@ -508,11 +508,11 @@ namespace NStringSplitPrivate { *dst = src; } - template <class T> - inline void DoFromString(const T& src, decltype(std::ignore)* dst) noexcept { - *dst = src; - } - + template <class T> + inline void DoFromString(const T& src, decltype(std::ignore)* dst) noexcept { + *dst = src; + } + template <class Src, class Dst> inline Y_WARN_UNUSED_RESULT bool TryDoFromString(const Src& src, Dst* dst) noexcept { return ::TryFromString(src, *dst); @@ -524,12 +524,12 @@ namespace NStringSplitPrivate { return true; } - template <class T> - inline Y_WARN_UNUSED_RESULT bool TryDoFromString(const T& src, decltype(std::ignore)* dst) noexcept { - *dst = src; - return true; - } - + template <class T> + inline Y_WARN_UNUSED_RESULT bool TryDoFromString(const T& src, decltype(std::ignore)* dst) noexcept { + *dst = src; + return true; + } + /** * Consumer that places provided elements into a container. Not using * `emplace(iterator)` for efficiency. |