Home | History | Annotate | Download | only in core

Lines Matching refs:SkScopeExit

16 /** SkScopeExit calls a std:::function<void()> in its destructor. */
17 class SkScopeExit {
19 SkScopeExit(std::function<void()> f) : fFn(std::move(f)) {}
20 SkScopeExit(SkScopeExit&& that) : fFn(std::move(that.fFn)) {}
22 ~SkScopeExit() {
30 SkScopeExit& operator=(SkScopeExit&& that) {
38 SkScopeExit( const SkScopeExit& ) = delete;
39 SkScopeExit& operator=(const SkScopeExit& ) = delete;
56 SkScopeExit SK_MACRO_APPEND_LINE(at_scope_exit_)([&]() { stmt; })