aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/cast.h
diff options
context:
space:
mode:
authorMikhail Borisov <borisov.mikhail@gmail.com>2022-02-10 16:45:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:40 +0300
commit5d50718e66d9c037dc587a0211110b7d25a66185 (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /util/string/cast.h
parenta6a92afe03e02795227d2641b49819b687f088f8 (diff)
downloadydb-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.h10
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);