4 #ifndef UTILMM_SMART_UNIQ_POINTER_HEADER
5 # define UTILMM_SMART_UNIQ_POINTER_HEADER
6 #include "utilmm/config/config.h"
46 template<
typename Ty,
class Hash=hash<Ty>,
class Equal=std::equal_to<Ty> >
63 template<
class Manager>
64 struct hash< smart::pointer<Manager> >
65 :
public std::unary_function<smart::pointer<Manager>, size_t> {
69 return size_t(x.
null()?0:hf(x));
75 #endif // UTILMM_SMART_UNIQ_POINTER_HEADER
hash functor
Definition: hash.hh:30
Definition of utilmm::smart::pointer.
Defintion of utilmm::smart::ref_count::uniq_memory.
Reference counting management.
Definition: ref_count_manager.hh:35
Unique instance memory manager.
Definition: uniq_memory.hh:97
Generic smart pointer.
Definition: pointer.hh:52
bool null() const
Check if null.
Definition of utilmm::smart::ref_count::manager.
pointer< manager_type > type
The smart pointer type.
Definition: uniq_pointer.hh:58
size_t operator()(smart::pointer< Manager > const &x) const
Definition: uniq_pointer.hh:66
Unique instance memory pointer definition traits.
Definition: uniq_pointer.hh:47