Util--  1.1
Public Types | List of all members
utilmm::smart::uniq_pointer< Ty, Hash, Equal > Struct Template Reference

Unique instance memory pointer definition traits. More...

#include <utilmm/smart/uniq_pointer.hh>

Inheritance diagram for utilmm::smart::uniq_pointer< Ty, Hash, Equal >:
Inheritance graph
[legend]

Public Types

typedef pointer< manager_typetype
 The smart pointer type. More...
 

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
TyThe type we want to point to
HashA hashing functor for Ty
EqualAn equality functor for Ty

To use a smart pointer to unique memory user just need to declare the type like in following code.

// [...]
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@l.nosp@m.aas..nosp@m.fr

Member Typedef Documentation

◆ type

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 Wed Oct 17 2018 09:34:19 for Util-- by doxygen 1.8.13
SourceForge.net Project Page