#include <utilmm/smart/uniq_pointer.hh>
Public Types | |
typedef pointer < manager_type > | type |
The smart pointer type. |
This structure is just an helper to have direct access for the unique insatnce memory smart pointer with reference counting management
Ty | The type we want to point to | |
Hash | A hashing functor for Ty | |
Equal | An equality functor for Ty |
#include "smart/uniq_pointer.hh" // [...] utilmm::smart::uniq_pointer<int>::type pi(new int(5)), pj; if( *pi==5 ) pj = pi;
typedef pointer<manager_type> utilmm::smart::uniq_pointer< Ty, Hash, Equal >::type |