Functional class for closing C file handles.
More...
#include <util.h>
|
| void | operator() (std::FILE *handle) const noexcept |
Functional class for closing C file handles.
Definition at line 59 of file util.h.
◆ operator()()
| void tools::close_file::operator() |
( |
std::FILE * | handle | ) |
const |
|
inlinenoexcept |
Definition at line 61 of file util.h.
62 {
63 if (handle)
64 {
65 std::fclose(handle);
66 }
67 }
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/common/util.h