15 #ifndef LLVM_ADT_SCOPE_EXIT_H
16 #define LLVM_ADT_SCOPE_EXIT_H
20 #include <type_traits>
27 Callable ExitFunction;
30 template <
typename Fp>
45 template <
typename Callable>
46 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>
49 std::forward<Callable>(
F));
scope_exit(scope_exit &&Rhs)
LLVM_NODISCARD detail::scope_exit< typename std::decay< Callable >::type > make_scope_exit(Callable &&F)
#define LLVM_NODISCARD
LLVM_NODISCARD - Warn if a type or return value is discarded.