diff options
author | kvk1920 <kvk1920@yandex-team.com> | 2023-09-22 00:20:05 +0300 |
---|---|---|
committer | kvk1920 <kvk1920@yandex-team.com> | 2023-09-22 00:34:09 +0300 |
commit | e74e887de43ac6520b91832a062ff9478c3167c9 (patch) | |
tree | f16130b0aa7b87405c117e920a7bfb88cc4b663d /library/cpp/yt | |
parent | 509d5166f4a73f954e28835885226e7f4a1635f0 (diff) | |
download | ydb-e74e887de43ac6520b91832a062ff9478c3167c9.tar.gz |
Get rid of TClusterResourceLimits::operator+()
Diffstat (limited to 'library/cpp/yt')
-rw-r--r-- | library/cpp/yt/misc/property.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/yt/misc/property.h b/library/cpp/yt/misc/property.h index eb8264968e..d172fcdcfb 100644 --- a/library/cpp/yt/misc/property.h +++ b/library/cpp/yt/misc/property.h @@ -7,8 +7,8 @@ //! Declares a trivial public read-write property that is passed by reference. #define DECLARE_BYREF_RW_PROPERTY(type, name) \ public: \ - type& name(); \ - const type& name() const + type& name() noexcept; \ + const type& name() const noexcept //! Defines a trivial public read-write property that is passed by reference. //! All arguments after name are used as default value (via braced-init-list). @@ -17,12 +17,12 @@ protected: \ type name##_ { __VA_ARGS__ }; \ \ public: \ - Y_FORCE_INLINE type& name() \ + Y_FORCE_INLINE type& name() noexcept \ { \ return name##_; \ } \ \ - Y_FORCE_INLINE const type& name() const \ + Y_FORCE_INLINE const type& name() const noexcept \ { \ return name##_; \ } \ @@ -35,12 +35,12 @@ protected: \ type name##_; \ \ public: \ - Y_FORCE_INLINE type& name() \ + Y_FORCE_INLINE type& name() noexcept \ { \ return name##_; \ } \ \ - Y_FORCE_INLINE const type& name() const \ + Y_FORCE_INLINE const type& name() const noexcept \ { \ return name##_; \ } \ @@ -48,12 +48,12 @@ public: \ //! Forwards a trivial public read-write property that is passed by reference. #define DELEGATE_BYREF_RW_PROPERTY(declaringType, type, name, delegateTo) \ - type& declaringType::name() \ + type& declaringType::name() noexcept \ { \ return (delegateTo).name(); \ } \ \ - const type& declaringType::name() const \ + const type& declaringType::name() const noexcept \ { \ return (delegateTo).name(); \ } \ @@ -64,7 +64,7 @@ public: \ //! Declares a trivial public read-only property that is passed by reference. #define DECLARE_BYREF_RO_PROPERTY(type, name) \ public: \ - const type& name() const + const type& name() const noexcept //! Defines a trivial public read-only property that is passed by reference. //! All arguments after name are used as default value (via braced-init-list). @@ -73,7 +73,7 @@ protected: \ type name##_ { __VA_ARGS__ }; \ \ public: \ - Y_FORCE_INLINE const type& name() const \ + Y_FORCE_INLINE const type& name() const noexcept \ { \ return name##_; \ } \ @@ -86,7 +86,7 @@ protected: \ type name##_; \ \ public: \ - Y_FORCE_INLINE const type& name() const \ + Y_FORCE_INLINE const type& name() const noexcept \ { \ return name##_; \ } \ @@ -94,7 +94,7 @@ public: \ //! Forwards a trivial public read-only property that is passed by reference. #define DELEGATE_BYREF_RO_PROPERTY(declaringType, type, name, delegateTo) \ - const type& declaringType::name() const \ + const type& declaringType::name() const noexcept \ { \ return (delegateTo).name(); \ } \ |