diff options
author | asa <[email protected]> | 2022-02-10 16:50:54 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:54 +0300 |
commit | 74f28e6c6fad7c4b75d97dcc239d29df04e525cb (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic | |
parent | c3206fd73f199b90b23e450b1d30b63c8e13a5a6 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r-- | util/generic/noncopyable.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/noncopyable.h b/util/generic/noncopyable.h index 8bf6a36c851..c007934133b 100644 --- a/util/generic/noncopyable.h +++ b/util/generic/noncopyable.h @@ -1,8 +1,8 @@ #pragma once - + /** * @class TNonCopyable - * + * * Inherit your class from `TNonCopyable` if you want to make it noncopyable. * * Example usage: @@ -11,8 +11,8 @@ * // ... * }; * @endcode - */ - + */ + namespace NNonCopyable { // protection from unintended ADL struct TNonCopyable { TNonCopyable(const TNonCopyable&) = delete; @@ -20,7 +20,7 @@ namespace NNonCopyable { // protection from unintended ADL TNonCopyable() = default; ~TNonCopyable() = default; - }; + }; struct TMoveOnly { TMoveOnly(TMoveOnly&&) noexcept = default; @@ -32,7 +32,7 @@ namespace NNonCopyable { // protection from unintended ADL TMoveOnly() = default; ~TMoveOnly() = default; }; -} - +} + using TNonCopyable = NNonCopyable::TNonCopyable; using TMoveOnly = NNonCopyable::TMoveOnly; |