|
dot-xx
A personal collection of small C++ modules
|
Class for deferring operations until the end of lifetime. More...
Public Types | |
| using | Deferred = TDeferred |
Public Member Functions | |
| constexpr | Defer (TDeferred d) |
| Defer (const Defer &)=delete | |
| Defer & | operator= (const Defer &)=delete |
| constexpr | Defer (Defer &&other) |
| constexpr Defer & | operator= (Defer &&other) |
Class for deferring operations until the end of lifetime.
Even though the class is designed to run things at the end of scope, if you really want to, you can move it and extends it's "scope"