The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
util::delete_item Struct Reference

A helper policy for scoped_ptr. More...

#include <scoped_resource.hpp>

Public Member Functions

template<typename T >
void operator() (T *&p) const
 

Detailed Description

A helper policy for scoped_ptr.

It will call the delete operator on a pointer, and assign the pointer to nullptr

Definition at line 122 of file scoped_resource.hpp.

Member Function Documentation

template<typename T >
void util::delete_item::operator() ( T *&  p) const
inline

Definition at line 124 of file scoped_resource.hpp.


The documentation for this struct was generated from the following file: