diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /util/generic/noncopyable.h | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/noncopyable.h')
-rw-r--r-- | util/generic/noncopyable.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/noncopyable.h b/util/generic/noncopyable.h index c007934133..a50961b7b6 100644 --- a/util/generic/noncopyable.h +++ b/util/generic/noncopyable.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once /** * @class TNonCopyable @@ -21,18 +21,18 @@ namespace NNonCopyable { // protection from unintended ADL TNonCopyable() = default; ~TNonCopyable() = default; }; - + struct TMoveOnly { TMoveOnly(TMoveOnly&&) noexcept = default; TMoveOnly& operator=(TMoveOnly&&) noexcept = default; - - TMoveOnly(const TMoveOnly&) = delete; - TMoveOnly& operator=(const TMoveOnly&) = delete; - - TMoveOnly() = default; - ~TMoveOnly() = default; - }; + + TMoveOnly(const TMoveOnly&) = delete; + TMoveOnly& operator=(const TMoveOnly&) = delete; + + TMoveOnly() = default; + ~TMoveOnly() = default; + }; } using TNonCopyable = NNonCopyable::TNonCopyable; -using TMoveOnly = NNonCopyable::TMoveOnly; +using TMoveOnly = NNonCopyable::TMoveOnly; |