utilmm::smart::count_pointer< Ty > Struct Template Reference
[Smart pointers]

reference counting pointer definition traits More...

#include <utilmm/smart/count_pointer.hh>

List of all members.

Public Types

typedef pointer
< manager_type
type
 The smart pointer type.


Detailed Description

template<typename Ty>
struct utilmm::smart::count_pointer< Ty >

reference counting pointer definition traits

This structure is just an helper to have direct access for the basic smart pointer using a reference counting life time manager.

Parameters:
Ty The type we want to point to
To use a smart pointer with reference count managament user just need to declare the type like in following code.

 #include "smart/count_pointer.hh"

 // [...]

 utilmm::smart::count_pointer<int>::type pi(new int(5)), pj;

 *pi = 6;
 pj = pi;

See also:
utilmm::smart::pointer

utilmm::smart::ref_count::manager

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

Member Typedef Documentation

template<typename Ty>
typedef pointer<manager_type> utilmm::smart::count_pointer< Ty >::type

The smart pointer type.

This the type of the smart pointer with 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