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_array Struct Reference

A helper policy for scoped_array. More...

#include <scoped_resource.hpp>

Public Member Functions

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

Detailed Description

A helper policy for scoped_array.

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

Definition at line 130 of file scoped_resource.hpp.

Member Function Documentation

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

Definition at line 132 of file scoped_resource.hpp.


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