dot-xx
A personal collection of small C++ modules
Loading...
Searching...
No Matches
dxx::utils::Defer< TDeferred > Class Template Referenceexport
module dxx.utils

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)

Detailed Description

template<typename TDeferred>
class dxx::utils::Defer< TDeferred >

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"


The documentation for this class was generated from the following file:
  • /build-llvm-libcpp/_deps/dot-xx-utils-src/src/defer.xx