Electroneum
Loading...
Searching...
No Matches
tools::close_file Struct Reference

Functional class for closing C file handles. More...

#include <util.h>

Public Member Functions

void operator() (std::FILE *handle) const noexcept

Detailed Description

Functional class for closing C file handles.

Definition at line 59 of file util.h.

Member Function Documentation

◆ 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