idol
Home
Command-Line Interface
Installation
Basics
Tutorials
Input Format
Troubleshooting
C++ Library
Installation
Examples
API Reference
Troubleshooting
About
GitHub
Loading...
Searching...
No Matches
lib
include
idol
general
utils
Finally.h
1
//
2
// Created by henri on 14.12.23.
3
//
4
5
#ifndef IDOL_FINALLY_H
6
#define IDOL_FINALLY_H
7
8
#include <functional>
9
10
namespace
idol {
11
class
Finally
;
12
}
13
14
class
idol::Finally
{
15
std::function<void()> m_function;
16
public
:
17
explicit
Finally(std::function<
void
()> t_function) : m_function(std::move(t_function)) {}
18
19
~Finally() { m_function(); }
20
};
21
22
23
#endif
//IDOL_FINALLY_H
idol::Finally
Definition
Finally.h:14
Generated by
1.16.1