|
Zero
0.1.0
|
Ensures that an array allocated with a call to operator new() gets deleted. More...
#include <guard.h>
Public Member Functions | |
| array_guard_t (T *ptr=nullptr) | |
Public Member Functions inherited from pointer_guard_base_t< T, array_guard_t< T > > | |
| pointer_guard_base_t (T *ptr) | |
| T & | operator* () const |
| operator T* () const | |
| T * | operator-> () const |
Public Member Functions inherited from guard_base_t< T *, array_guard_t< T > > | |
| guard_base_t (T * obj) | |
| guard_base_t (const guard_base_t &other) | |
| guard_base_t & | operator= (const guard_base_t &other) |
| operator T* () const | |
| T * | get () const |
| T * | release () const |
| Notifies this guard that its services are no longer needed because some other entity has assumed ownership of the pointer. More... | |
| void | done () const |
| Notifies this guard that its action should be performed now rather than at destruct time. More... | |
| ~guard_base_t () | |
Static Public Member Functions | |
| static void | guard_action (T *ptr) |
Static Public Member Functions inherited from guard_base_t< T *, array_guard_t< T > > | |
| static T * | null_value () |
| static bool | different (const T * &a, const T * &b) |
Additional Inherited Members | |
Public Types inherited from pointer_guard_base_t< T, array_guard_t< T > > | |
| typedef guard_base_t< T *, array_guard_t< T > > | Base |
Public Types inherited from guard_base_t< T *, array_guard_t< T > > | |
| typedef guard_base_t< T *, array_guard_t< T > > | Base |
Protected Member Functions inherited from guard_base_t< T *, array_guard_t< T > > | |
| void | assign (T * obj) const |
Protected Attributes inherited from guard_base_t< T *, array_guard_t< T > > | |
| T * | _obj |
Ensures that an array allocated with a call to operator new() gets deleted.
|
inline |
|
inlinestatic |
1.8.12