#include <SkScopeExit.h>
SkScopeExit calls a std:function<void()> in its destructor.
Definition at line 17 of file SkScopeExit.h.
◆ SkScopeExit() [1/3]
SkScopeExit::SkScopeExit |
( |
| ) |
|
|
default |
◆ SkScopeExit() [2/3]
◆ SkScopeExit() [3/3]
Definition at line 21 of file SkScopeExit.h.
21: fFn(std::move(that.fFn)) {}
◆ ~SkScopeExit()
SkScopeExit::~SkScopeExit |
( |
| ) |
|
|
inline |
Definition at line 23 of file SkScopeExit.h.
23 {
24 if (fFn) {
25 fFn();
26 }
27 }
◆ clear()
void SkScopeExit::clear |
( |
| ) |
|
|
inline |
◆ operator=()
Definition at line 31 of file SkScopeExit.h.
31 {
32 fFn = std::move(that.fFn);
33 return *this;
34 }
The documentation for this class was generated from the following file: