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 | 69505a07cbb096113e85aa02e7d136cac4aa826c (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util | |
parent | c7a40cf248b398bcc12d4b6373effc431153536f (diff) | |
download | ydb-69505a07cbb096113e85aa02e7d136cac4aa826c.tar.gz |
Restoring authorship annotation for <plato@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-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 4c2a616b8c..34d21aebcd 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) { |