diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:10 +0300 |
commit | 1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/string/builder.h | |
parent | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff) | |
download | ydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/string/builder.h')
-rw-r--r-- | util/string/builder.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/string/builder.h b/util/string/builder.h index 11eb840e23..7b54821151 100644 --- a/util/string/builder.h +++ b/util/string/builder.h @@ -4,14 +4,14 @@ #include <utility> #include <util/generic/string.h> -namespace NPrivateStringBuilder { +namespace NPrivateStringBuilder { class TStringBuilder: public TString { public: inline TStringBuilder() : Out(*this) { } - + TStringBuilder(TStringBuilder&& rhs) : TString(std::move(rhs)) , Out(*this) @@ -31,9 +31,9 @@ namespace NPrivateStringBuilder { template <class T> static inline TStringBuilder&& operator<<(TStringBuilder&& builder, const T& t) { builder.Out << t; - + return std::move(builder); } -} - -using TStringBuilder = NPrivateStringBuilder::TStringBuilder; +} + +using TStringBuilder = NPrivateStringBuilder::TStringBuilder; |