MCPcopy Create free account
hub / github.com/davisking/dlib / make_scope_exit

Function make_scope_exit

dlib/scope.h:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>

Callers 3

perform_testMethod · 0.85
test_scope_exitFunction · 0.85
test_gaussian_filterFunction · 0.85

Calls

no outgoing calls

Tested by 3

perform_testMethod · 0.68
test_scope_exitFunction · 0.68
test_gaussian_filterFunction · 0.68