diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic/maybe.h | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/maybe.h')
-rw-r--r-- | util/generic/maybe.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/maybe.h b/util/generic/maybe.h index b1b1a681e5..34d21aebcd 100644 --- a/util/generic/maybe.h +++ b/util/generic/maybe.h @@ -11,11 +11,11 @@ namespace NMaybe { struct TPolicyUndefinedExcept { - [[noreturn]] static void OnEmpty(const std::type_info& valueTypeInfo); + [[noreturn]] static void OnEmpty(const std::type_info& valueTypeInfo); }; struct TPolicyUndefinedFail { - [[noreturn]] static void OnEmpty(const std::type_info& valueTypeInfo); + [[noreturn]] static void OnEmpty(const std::type_info& valueTypeInfo); }; } @@ -301,7 +301,7 @@ public: void CheckDefined() const { if (Y_UNLIKELY(!Defined())) { - Policy::OnEmpty(typeid(TValueType)); + Policy::OnEmpty(typeid(TValueType)); } } @@ -716,7 +716,7 @@ inline IOutputStream& operator<<(IOutputStream& out, const TMaybe<T, TPolicy>& m if (maybe.Defined()) { out << *maybe; } else { - out << TStringBuf("(empty maybe)"); + out << TStringBuf("(empty maybe)"); } return out; } |