veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::Finalizer Struct Reference

Finalizer holds a function that is executed on Finalizer destruction. More...

Detailed Description

Definition at line 18 of file finalizer.hpp.

#include <finalizer.hpp>

+ Collaboration diagram for altintegration::Finalizer:

Public Member Functions

 Finalizer (std::function< void()> func)
 

Constructor & Destructor Documentation

◆ Finalizer()

altintegration::Finalizer::Finalizer ( std::function< void()>  func)
inlineexplicit

Definition at line 19 of file finalizer.hpp.

19: onDestroy(std::move(func)) {}

◆ ~Finalizer()

altintegration::Finalizer::~Finalizer ( )
inline

Definition at line 20 of file finalizer.hpp.

20{ onDestroy(); }

The documentation for this struct was generated from the following file: