Gromacs  2020.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions
fileptr.h File Reference
#include <cstdio>
#include "gromacs/utility/unique_cptr.h"
+ Include dependency graph for fileptr.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares guard pointer for RAII-style handling of cstdio FILE pointers.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Typedefs

using gmx::FilePtr = std::unique_ptr< FILE, functor_wrapper< FILE, fclose_wrapper >>
 Simple guard pointer which calls fclose. See unique_cptr for details.
 

Functions

void gmx::fclose_wrapper (FILE *fp)
 fclose wrapper to be used as unique_ptr deleter