ui-utilcpp
1.8.5
|
Control freeing of memory via std::free. More...
#include <Misc.hpp>
Public Member Functions | |
auto_free (P *const p) | |
Control this memory allocated via std::*alloc. | |
~auto_free () | |
Free memory via std::free. | |
![]() | |
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). | |
P * | get () const |
Get underlying pointer. | |
P * | operator-> () const |
Smart dereferencing. | |
Additional Inherited Members | |
![]() | |
P * | p_ |
Controlled pointer. | |
Control freeing of memory via std::free.