diff options
author | aleksandra-zh <aleksandra-zh@yandex-team.ru> | 2022-02-10 16:50:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:47 +0300 |
commit | 62871f297fed166bdc5ce9defd4bf442df3ecda3 (patch) | |
tree | 87c75ead7f129893766a4994355ddb6bbf2bd86d | |
parent | e772fc45076f9b8c36e856c54cf267fd41d636b1 (diff) | |
download | ydb-62871f297fed166bdc5ce9defd4bf442df3ecda3.tar.gz |
Restoring authorship annotation for <aleksandra-zh@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | library/cpp/yt/misc/property.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/yt/misc/property.h b/library/cpp/yt/misc/property.h index bef8024ae1..97a1163d36 100644 --- a/library/cpp/yt/misc/property.h +++ b/library/cpp/yt/misc/property.h @@ -117,28 +117,28 @@ public: \ name##_ = value; \ } \ -//! Defines a trivial public read-write property that is passed by value. -//! All arguments after name are used as default value (via braced-init-list). -#define DEFINE_BYVAL_RW_PROPERTY_WITH_FLUENT_SETTER(declaringType, type, name, ...) \ -protected: \ - type name##_ { __VA_ARGS__ }; \ - \ -public: \ - Y_FORCE_INLINE type Get##name() const \ - { \ - return name##_; \ - } \ - \ - Y_FORCE_INLINE void Set##name(type value) &\ - { \ - name##_ = value; \ - } \ - \ - Y_FORCE_INLINE declaringType&& Set##name(type value) &&\ - { \ - name##_ = value; \ - return std::move(*this); \ - } \ +//! Defines a trivial public read-write property that is passed by value. +//! All arguments after name are used as default value (via braced-init-list). +#define DEFINE_BYVAL_RW_PROPERTY_WITH_FLUENT_SETTER(declaringType, type, name, ...) \ +protected: \ + type name##_ { __VA_ARGS__ }; \ + \ +public: \ + Y_FORCE_INLINE type Get##name() const \ + { \ + return name##_; \ + } \ + \ + Y_FORCE_INLINE void Set##name(type value) &\ + { \ + name##_ = value; \ + } \ + \ + Y_FORCE_INLINE declaringType&& Set##name(type value) &&\ + { \ + name##_ = value; \ + return std::move(*this); \ + } \ //! Defines a trivial public read-write property that is passed by value //! and is not inline-initialized. @@ -210,7 +210,7 @@ public: \ //////////////////////////////////////////////////////////////////////////////// -//! Below are macro helpers for extra properties. +//! Below are macro helpers for extra properties. //! Extra properties should be used for lazy memory allocation for properties that //! hold default values for the majority of objects. |