aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/vector.h
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch)
tree8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/string/vector.h
parentd2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff)
downloadydb-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.h12
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;
+}