utilmm::smart::uniq_pointer< Ty, Hash, Equal > Struct Template Reference
[Smart pointers]

Unique instance memory pointer definition traits. More...

#include <utilmm/smart/uniq_pointer.hh>

List of all members.

Public Types

typedef pointer
< manager_type
type
 The smart pointer type.


Detailed Description

template<typename Ty, class Hash = hash<Ty>, class Equal = std::equal_to<Ty>>
struct utilmm::smart::uniq_pointer< Ty, Hash, Equal >

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

Parameters:
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;

See also:
utilmm::smart::pointer

utilmm::smart::ref_count::manager

utilmm::smart::ref_count::uniq_memory

Author:
Frédéric Py <fpy@laas.fr>

Member Typedef Documentation

template<typename Ty, class Hash = hash<Ty>, class Equal = std::equal_to<Ty>>
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.


The documentation for this struct was generated from the following file:
Generated on Tue Feb 19 10:51:02 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page