LLVM 22.0.0git
ScopeExit.h File Reference

This file defines the make_scope_exit function, which executes user-defined cleanup logic at scope exit. More...

#include <utility>

Go to the source code of this file.

Classes

class  llvm::scope_exit< Callable >

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

template<typename Callable>
 llvm::scope_exit (Callable) -> scope_exit< Callable >
template<typename Callable>
auto llvm::make_scope_exit (Callable &&F)

Detailed Description

This file defines the make_scope_exit function, which executes user-defined cleanup logic at scope exit.

Definition in file ScopeExit.h.