aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/ref.h
diff options
context:
space:
mode:
authorgritukan <gritukan@yandex-team.com>2023-08-07 16:26:35 +0300
committergritukan <gritukan@yandex-team.com>2023-08-07 17:54:21 +0300
commit36bd23adab11a9c3e8552963e7ced107f381cb33 (patch)
tree3e07f6f92c78496a959611b8c5b956d1e26c1862 /library/cpp/yt/memory/ref.h
parent67c8b51e98caa2abfc405b42b9497563207dd424 (diff)
downloadydb-36bd23adab11a9c3e8552963e7ced107f381cb33.tar.gz
YT-19686: Support building TRef from std::string
Diffstat (limited to 'library/cpp/yt/memory/ref.h')
-rw-r--r--library/cpp/yt/memory/ref.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/yt/memory/ref.h b/library/cpp/yt/memory/ref.h
index a47188180c..2b2a0792ab 100644
--- a/library/cpp/yt/memory/ref.h
+++ b/library/cpp/yt/memory/ref.h
@@ -36,6 +36,9 @@ public:
//! Creates a non-owning TRef for a given string.
static TRef FromString(const TString& str);
+ //! Creates a non-owning TRef for a given std::string.
+ static TRef FromString(const std::string& str);
+
//! Creates a non-owning TRef for a given stringbuf.
static TRef FromStringBuf(TStringBuf strBuf);