diff options
author | putilin <putilin@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
commit | 3a0b7cd78a1a8366b3944d8d1e11ef9bb52549bf (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/string/split.h | |
parent | d85af01a101a46c4381ba0c8d5785a43c8273afd (diff) | |
download | ydb-3a0b7cd78a1a8366b3944d8d1e11ef9bb52549bf.tar.gz |
Restoring authorship annotation for <putilin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/split.h')
-rw-r--r-- | util/string/split.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/util/string/split.h b/util/string/split.h index 22cbb8bcda..bc46d9e64c 100644 --- a/util/string/split.h +++ b/util/string/split.h @@ -298,23 +298,23 @@ struct TContainerConsumer { T* C; }; -template <class T> -struct TContainerConvertingConsumer { +template <class T> +struct TContainerConvertingConsumer { inline TContainerConvertingConsumer(T* c) noexcept - : C(c) - { - } - - template <class I> - inline bool Consume(I* b, I* d, I* /*e*/) { + : C(c) + { + } + + template <class I> + inline bool Consume(I* b, I* d, I* /*e*/) { TConsumerBackInserter<T>::DoInsert(C, FromString<typename T::value_type>(TStringBuf(b, d))); - - return true; - } - - T* C; -}; - + + return true; + } + + T* C; +}; + template <class S, class I> struct TLimitingConsumer { inline TLimitingConsumer(size_t cnt, S* slave) noexcept |