Util--  1.1
Public Member Functions | List of all members
utilmm::smart::ref_count::eq_ptr< Ty, Equal > Struct Template Reference

In depth pointer equality functor. More...

#include <utilmm/smart/bits/uniq_memory.hh>

Inheritance diagram for utilmm::smart::ref_count::eq_ptr< Ty, Equal >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::smart::ref_count::eq_ptr< Ty, Equal >:
Collaboration graph
[legend]

Public Member Functions

bool operator() (Ty const *a, Ty const *b) const
 Call operator. More...
 

Detailed Description

template<typename Ty, class Equal>
struct utilmm::smart::ref_count::eq_ptr< Ty, Equal >

In depth pointer equality functor.

This functor is used by utilmm::smart::ref_count::uniq_memory to test if two pointers are pointing to equal cells.

Parameters
TyThe type of pointed cells
Equalequality functor for Ty
Author
Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr

Member Function Documentation

◆ operator()()

template<typename Ty , class Equal >
bool utilmm::smart::ref_count::eq_ptr< Ty, Equal >::operator() ( Ty const *  a,
Ty const *  b 
) const

Call operator.

Parameters
aa const pointer
ba const pointer

This function checks if the pointed values by a and b are equals

Returns
Equal(*a, *b)
Precondition
a and b must not be null pointers

The documentation for this struct was generated from the following file:

Generated on Mon Oct 22 2018 18:39:28 for Util-- by doxygen 1.8.13
SourceForge.net Project Page