58[[deprecated]]
inline void swap_it(T& t1, T& t2)
125 return (*(
static_cast<T*
>(
nullptr)));
131 return &r ==
nullptr;
Deletes the pointer of type T allocated by 'new' when this instance goes out of scope.
Definition pointer.h:69
void disable_delete()
Definition pointer.h:81
scope_delete(T *p)
Definition pointer.h:71
~scope_delete()
Definition pointer.h:76
Frees the pointer of type T allocated by 'malloc' when this instance goes out of scope.
Definition pointer.h:96
void disable_free()
Definition pointer.h:108
scope_free(T *p)
Definition pointer.h:98
~scope_free()
Definition pointer.h:103
Definition Application.h:10
bool not_ref_null(T &r)
Definition pointer.h:129
void swap_it(T &t1, T &t2)
Swaps the passed two arguments of any type.
Definition pointer.h:58
void delete_null(T &p)
Deletes object and clears pointer.
Definition pointer.h:14
void free_null(T &p)
Template function freeing a pointer previous allocated by 'malloc' when the pointer is non-null and a...
Definition pointer.h:40
T & null_ref()
Definition pointer.h:123
void delete_anull(T &p)
Deletes an array previous allocated by 'new[]' when the pointer is non-null and also nulls the passed...
Definition pointer.h:27