Implementation of "smart pointers" for C++

Pointers for C++ implemented in the RAII paradigm and correctly freeing memory in any case.