Unique instance memory pointer definition traits. More...
#include <uniq_pointer.hh>
Public Types | |
typedef pointer< manager_type > | type |
The smart pointer type. | |
Private Types | |
typedef ref_count::manager < mem_type > | manager_type |
typedef ref_count::uniq_memory < Ty, Hash, Equal > | mem_type |
Unique instance memory pointer definition traits.
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 |
To use a smart pointer to unique memory user just need to declare the type like in following code.
#include "smart/uniq_pointer.hh" // [...] utilmm::smart::uniq_pointer<int>::type pi(new int(5)), pj; if( *pi==5 ) pj = pi;
Definition at line 47 of file uniq_pointer.hh.
typedef ref_count::manager<mem_type> utilmm::smart::uniq_pointer< Ty, Hash, Equal >::manager_type [private] |
Definition at line 50 of file uniq_pointer.hh.
typedef ref_count::uniq_memory<Ty, Hash, Equal> utilmm::smart::uniq_pointer< Ty, Hash, Equal >::mem_type [private] |
Definition at line 49 of file uniq_pointer.hh.
typedef pointer<manager_type> utilmm::smart::uniq_pointer< Ty, Hash, Equal >::type |
The smart pointer type.
This the type of the smart pointer with unique memory and reference counting management.
Definition at line 58 of file uniq_pointer.hh.