diff options
author | aosipenko <aosipenko@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
commit | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch) | |
tree | 8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/string/vector.h | |
parent | d2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff) | |
download | ydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz |
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/vector.h')
-rw-r--r-- | util/string/vector.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/string/vector.h b/util/string/vector.h index e36c348bbe..8322f349f1 100644 --- a/util/string/vector.h +++ b/util/string/vector.h @@ -119,14 +119,14 @@ inline TString JoinVectorIntoString(const TVector<T>& v, size_t index, size_t co TUtf16String JoinStrings(const TVector<TUtf16String>& v, const TWtringBuf delim); TUtf16String JoinStrings(const TVector<TUtf16String>& v, size_t index, size_t count, const TWtringBuf delim); - + //! Converts vector of strings to vector of type T variables template <typename T, typename TStringType> TVector<T> Scan(const TVector<TStringType>& input) { TVector<T> output; - output.reserve(input.size()); + output.reserve(input.size()); for (int i = 0; i < input.ysize(); ++i) { - output.push_back(FromString<T>(input[i])); - } - return output; -} + output.push_back(FromString<T>(input[i])); + } + return output; +} |