diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 317da38588b7898a99fd9168571408123350012b (patch) | |
tree | 25eebc31526019ad39a6c1b13f492963d97ba439 /util/generic/scope.h | |
parent | 3b2241461d41d41ba1a706b0750c4f0f55c344f6 (diff) | |
download | ydb-317da38588b7898a99fd9168571408123350012b.tar.gz |
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/scope.h')
-rw-r--r-- | util/generic/scope.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/scope.h b/util/generic/scope.h index b2c33af61e..394c8af6be 100644 --- a/util/generic/scope.h +++ b/util/generic/scope.h @@ -43,15 +43,15 @@ namespace NPrivate { // General implementaion of RAII idiom (resource acquisition is initialization). Executes // function upon return from the current scope. // -// @note expects `body` to provide no-throw guarantee, otherwise whenever an exception -// is thrown and leaves the outermost block of `body`, the function `std::terminate` is called. +// @note expects `body` to provide no-throw guarantee, otherwise whenever an exception +// is thrown and leaves the outermost block of `body`, the function `std::terminate` is called. // @see http://drdobbs.com/184403758 for detailed motivation. #define Y_SCOPE_EXIT(...) const auto Y_GENERATE_UNIQUE_ID(scopeGuard) Y_DECLARE_UNUSED = ::NPrivate::TMakeGuardHelper{} | [__VA_ARGS__]() mutable -> void // \brief `Y_DEFER { body };` // // Same as `Y_SCOPE_EXIT` but doesn't require user to provide capture-list explicitly (it -// implicitly uses `[&]` capture). Have same requirements for `body`. +// implicitly uses `[&]` capture). Have same requirements for `body`. // // Inspired by `defer` statement in languages like Swift and Go. // |