Dev Essential
Loading...
Searching...
No Matches
scopeguard.h File Reference
#include <exception>
#include <type_traits>
#include <utility>
Include dependency graph for scopeguard.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  a_util::ScopeGuard< F >
 

Namespaces

namespace  a_util
 Serves as the root component, with common functionality documented in core functionality.
 

Functions

template<class F>
auto a_util::scopeExit (F &&f)
 

Detailed Description

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)