| 56 | |
| 57 | template<class Fn> |
| 58 | auto make_scope_exit(Fn&& f) |
| 59 | /*! |
| 60 | ensures: |
| 61 | - This is factory function that wraps the callback in a scope_exit object. |
| 62 | !*/ |
| 63 | |
| 64 | { |
| 65 | return scope_exit<std::decay_t<Fn>>(std::forward<Fn>(f)); |
| 66 | } |
| 67 | |
| 68 | #ifdef __cpp_deduction_guides |
| 69 | template<class Fn> |
no outgoing calls