diff options
| author | Alexander Fokin <[email protected]> | 2022-02-10 16:45:38 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:38 +0300 |
| commit | 863a59a65247c24db7cb06789bc5cf79d04da32f (patch) | |
| tree | 139dc000c8cd4a40f5659e421b7c75135d080307 /util/generic/noncopyable.h | |
| parent | f64e95a9eb9ab03240599eb9581c5a9102426a96 (diff) | |
Restoring authorship annotation for Alexander Fokin <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/noncopyable.h')
| -rw-r--r-- | util/generic/noncopyable.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/noncopyable.h b/util/generic/noncopyable.h index c007934133b..655436a70db 100644 --- a/util/generic/noncopyable.h +++ b/util/generic/noncopyable.h @@ -1,20 +1,20 @@ #pragma once -/** - * @class TNonCopyable +/** + * @class TNonCopyable * - * Inherit your class from `TNonCopyable` if you want to make it noncopyable. + * Inherit your class from `TNonCopyable` if you want to make it noncopyable. * - * Example usage: - * @code - * class Foo: private TNonCopyable { - * // ... - * }; - * @endcode + * Example usage: + * @code + * class Foo: private TNonCopyable { + * // ... + * }; + * @endcode */ namespace NNonCopyable { // protection from unintended ADL - struct TNonCopyable { + struct TNonCopyable { TNonCopyable(const TNonCopyable&) = delete; TNonCopyable& operator=(const TNonCopyable&) = delete; @@ -22,7 +22,7 @@ namespace NNonCopyable { // protection from unintended ADL ~TNonCopyable() = default; }; - struct TMoveOnly { + struct TMoveOnly { TMoveOnly(TMoveOnly&&) noexcept = default; TMoveOnly& operator=(TMoveOnly&&) noexcept = default; |
