diff options
author | plato <plato@yandex-team.ru> | 2022-02-10 16:47:35 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:35 +0300 |
commit | c7a40cf248b398bcc12d4b6373effc431153536f (patch) | |
tree | fbfabdce994a8a6aa39a00ba2458a659dbb68b25 /util/generic/maybe.h | |
parent | 21a65387eb2dc61703469a17ee6b27ef09095ae6 (diff) | |
download | ydb-c7a40cf248b398bcc12d4b6373effc431153536f.tar.gz |
Restoring authorship annotation for <plato@yandex-team.ru>. Commit 1 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 34d21aebcd..4c2a616b8c 100644 --- a/util/generic/maybe.h +++ b/util/generic/maybe.h @@ -479,10 +479,10 @@ void swap(TMaybe<T, TPolicy>& lhs, TMaybe<T, TPolicy>& rhs) { template <typename T, class TPolicy> struct THash<TMaybe<T, TPolicy>> { constexpr size_t operator()(const TMaybe<T, TPolicy>& data) const { - return (data.Defined()) ? THash<T>()(data.GetRef()) : 42; - } -}; - + return (data.Defined()) ? THash<T>()(data.GetRef()) : 42; + } +}; + // Comparisons between TMaybe template <class T, class TPolicy> constexpr bool operator==(const ::TMaybe<T, TPolicy>& left, const ::TMaybe<T, TPolicy>& right) { |