ui-utilcpp 1.10.3
Public Member Functions
UI::Util::auto_free< P > Class Template Reference

Control freeing of memory via std::free. More...

#include <Misc.hpp>

Inheritance diagram for UI::Util::auto_free< P >:
Inheritance graph
Collaboration diagram for UI::Util::auto_free< P >:
Collaboration graph

Public Member Functions

 auto_free (P *const p)
 Control this memory allocated via std::*alloc.
 
 ~auto_free ()
 Free memory via std::free.
 
- Public Member Functions inherited from UI::Util::auto_base< P >
 auto_base (P *const p=0)
 Construct from any pointer (may be 0).
 
void set (P *const p)
 Set controlled pointer (must not be 0).
 
Pget () const
 Get underlying pointer.
 
Poperator-> () const
 Smart dereferencing.
 

Additional Inherited Members

- Protected Attributes inherited from UI::Util::auto_base< P >
Pp_
 Controlled pointer.
 

Detailed Description

template<typename P>
class UI::Util::auto_free< P >

Control freeing of memory via std::free.


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