ADTF
3.18.4
|
Contains code for scope guard classes. More...
Go to the source code of this file.
Classes | |
class | ScopeGuard< F > |
Scope guard executing a callable object of type F on scope exit. More... | |
Namespaces | |
a_util | |
Serves as the root component, with common functionality documented in core functionality. | |
Functions | |
template<class F > | |
auto | scopeExit (F &&f) |
Creates a scope guard executing callable f on scope exit. More... | |
Contains code for scope guard classes.
These classes facilitate use of the RAII idiom to perform cleanup work or resource management. They are based on Andrei Alexandrescu's talk “Declarative Control Flow" (https://www.youtube.com/watch?v=WjTrfoiB0MQ)
Copyright @ 2023 VW Group. All rights reserved. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Definition in file scopeguard.h.