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 "llvm/Support/Compiler.h"
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  llvm::detail::scope_exit< Callable >

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::detail
 A self-contained host- and target-independent arbitrary-precision floating-point software implementation.

Functions

template<typename Callable>
detail::scope_exit< std::decay_t< Callable > > 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.