qxLib
Public Member Functions | List of all members
qx::destruction_callback Class Reference

Class for RAII: functor passed in constructor will be called in destructor. More...

#include <destruction_callback.h>

Public Member Functions

 destruction_callback (destroyer _destroyer)
 destruction_callback object constructor More...
 

Detailed Description

Class for RAII: functor passed in constructor will be called in destructor.

Author
Khrapov
Date
12.12.2021

Definition at line 24 of file destruction_callback.h.

Constructor & Destructor Documentation

◆ destruction_callback()

qx::destruction_callback::destruction_callback ( destroyer  _destroyer)
inline

destruction_callback object constructor

Parameters
_destroyer- functor that will be called when object will be destroyed

Definition at line 39 of file destruction_callback.h.


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