Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
pointer.h File Reference
#include <utility>
Include dependency graph for pointer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sf::scope_delete< T >
 Deletes the pointer of type T allocated by 'new' when this instance goes out of scope. More...
class  sf::scope_free< T >
 Frees the pointer of type T allocated by 'malloc' when this instance goes out of scope. More...

Namespaces

namespace  sf

Functions

template<typename T>
void sf::delete_null (T &p)
 Deletes object and clears pointer.
template<typename T>
void sf::delete_anull (T &p)
 Deletes an array previous allocated by 'new[]' when the pointer is non-null and also nulls the passed pointer.
template<typename T>
void sf::free_null (T &p)
 Template function freeing a pointer previous allocated by 'malloc' when the pointer is non-null and also nulls the passed pointer.
template<typename T>
void sf::swap_it (T &t1, T &t2)
 Swaps the passed two arguments of any type.
template<typename T>
T & sf::null_ref ()
template<typename T>
bool sf::not_ref_null (T &r)