diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /util/string/cast.h | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/string/cast.h')
-rw-r--r-- | util/string/cast.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/cast.h b/util/string/cast.h index 622c96aae7..90e925c194 100644 --- a/util/string/cast.h +++ b/util/string/cast.h @@ -323,14 +323,14 @@ inline TString IntToString(T t) { return TString(buf, IntToString<base>(t, buf, sizeof(buf))); } -template <int base, class TInt, class TChar> -bool TryIntFromString(const TChar* data, size_t len, TInt& result); - +template <int base, class TInt, class TChar> +bool TryIntFromString(const TChar* data, size_t len, TInt& result); + template <int base, class TInt, class TStringType> inline bool TryIntFromString(const TStringType& s, TInt& result) { return TryIntFromString<base>(s.data(), s.size(), result); -} - +} + template <class TInt, int base, class TChar> TInt IntFromString(const TChar* str, size_t len); |