aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/scope.h
diff options
context:
space:
mode:
authorqkrorlqr <qkrorlqr@yandex-team.ru>2022-02-10 16:47:20 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:20 +0300
commit9b89266638b10d40309e31dcb7caa2fc52b2aefd (patch)
treeaaf0d6ece270940a4f208e4202e4a37a15ce05b7 /util/generic/scope.h
parent47af3b5bf148ddab250833ec454d30d7c4930c31 (diff)
downloadydb-9b89266638b10d40309e31dcb7caa2fc52b2aefd.tar.gz
Restoring authorship annotation for <qkrorlqr@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/scope.h')
-rw-r--r--util/generic/scope.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/scope.h b/util/generic/scope.h
index b2c33af61e7..7d4d0c7fafb 100644
--- a/util/generic/scope.h
+++ b/util/generic/scope.h
@@ -1,10 +1,10 @@
-#pragma once
-
+#pragma once
+
#include <util/system/compiler.h>
-#include <util/system/defaults.h>
+#include <util/system/defaults.h>
#include <utility>
-
+
namespace NPrivate {
template <typename F>
class TScopeGuard {
@@ -13,12 +13,12 @@ namespace NPrivate {
: Function_{function}
{
}
-
+
TScopeGuard(F&& function)
: Function_{std::move(function)}
{
}
-
+
TScopeGuard(TScopeGuard&&) = default;
TScopeGuard(const TScopeGuard&) = default;