aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/scope.h
diff options
context:
space:
mode:
authorqkrorlqr <qkrorlqr@yandex-team.ru>2022-02-10 16:47:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:21 +0300
commiteec632e483ae34bc211138c67434b1e0e6054ced (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic/scope.h
parent9b89266638b10d40309e31dcb7caa2fc52b2aefd (diff)
downloadydb-eec632e483ae34bc211138c67434b1e0e6054ced.tar.gz
Restoring authorship annotation for <qkrorlqr@yandex-team.ru>. Commit 2 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 7d4d0c7faf..b2c33af61e 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;