diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-10-28 20:34:11 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-10-28 20:34:11 +0000 |
commit | ef9875b11a33dbd25e92bc6b4cf692c18c9ba0ce (patch) | |
tree | 1f2fd4e4d9e585da35937b42fbda5f854af04728 /library/cpp/yt/string/enum.h | |
parent | 37ae9cc90160b53eb0e22021c47b3996a01cd656 (diff) | |
parent | e3c8507a3d1cb090278f211232ddfde3bedc54d4 (diff) | |
download | ydb-ef9875b11a33dbd25e92bc6b4cf692c18c9ba0ce.tar.gz |
Merge branch 'rightlib' into mergelibs-241028-2033
Diffstat (limited to 'library/cpp/yt/string/enum.h')
-rw-r--r-- | library/cpp/yt/string/enum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yt/string/enum.h b/library/cpp/yt/string/enum.h index 792e09402d..a0be527583 100644 --- a/library/cpp/yt/string/enum.h +++ b/library/cpp/yt/string/enum.h @@ -15,10 +15,10 @@ TString DecodeEnumValue(TStringBuf value); TString EncodeEnumValue(TStringBuf value); template <class T> -std::optional<T> TryParseEnum(TStringBuf value); +std::optional<T> TryParseEnum(TStringBuf str, bool enableUnknown = false); template <class T> -T ParseEnum(TStringBuf value); +T ParseEnum(TStringBuf str); template <class T> void FormatEnum(TStringBuilderBase* builder, T value, bool lowerCase); |