Gromacs  2016.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions
scoped_cptr.h File Reference
#include "gromacs/utility/classhelpers.h"
#include "gromacs/utility/smalloc.h"
+ Include dependency graph for scoped_cptr.h:

Description

Declares gmx::scoped_cptr and gmx::scoped_guard_sfree.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Classes

class  gmx::scoped_cptr< T, D >
 Stripped-down version of scoped_ptr that uses sfree() or custom deleter. More...
 

Typedefs

typedef scoped_cptr< void > gmx::scoped_guard_sfree
 Simple guard which calls sfree. See scoped_cptr for details.
 

Functions

template<class T >
void gmx::sfree_wrapper (T *p)
 sfree wrapper to be used as scoped_cptr deleter