Template Struct scope_exit

Struct Documentation

template<typename CallableT>
struct scope_exit

Public Functions

inline explicit scope_exit(CallableT &&callable)
scope_exit(const scope_exit&) = delete
scope_exit(scope_exit&&) = default
scope_exit &operator=(const scope_exit&) = delete
scope_exit &operator=(scope_exit&&) = default
inline ~scope_exit()
inline void cancel()