libabigail
Public Member Functions | List of all members
deep_ptr_eq_functor Struct Reference

An equality functor to deeply compare pointers. More...

#include <abg-diff-utils.h>

Public Member Functions

template<typename T >
bool operator() (const shared_ptr< T > first, const shared_ptr< T > second) const
 This equality operator compares pointers by comparing the pointed-to objects. More...
 
template<typename T >
bool operator() (const T *first, const T *second) const
 This equality operator compares pointers by comparing the pointed-to objects. More...
 
template<typename T >
bool operator() (const weak_ptr< T > first, const weak_ptr< T > second) const
 This equality operator compares pointers by comparing the pointed-to objects. More...
 

Detailed Description

An equality functor to deeply compare pointers.

Definition at line 735 of file abg-diff-utils.h.

Member Function Documentation

◆ operator()() [1/3]

bool operator() ( const shared_ptr< T >  first,
const shared_ptr< T >  second 
) const
inline

This equality operator compares pointers by comparing the pointed-to objects.

Parameters
firstthe first comparison argument.
secondthe second comparison argument.
Returns
true if the objects pointed to by the pointers are equal, false otherwise.

Definition at line 771 of file abg-diff-utils.h.

◆ operator()() [2/3]

bool operator() ( const T *  first,
const T *  second 
) const
inline

This equality operator compares pointers by comparing the pointed-to objects.

Parameters
firstthe first comparison argument.
secondthe second comparison argument.
Returns
true if the objects pointed to by the pointers are equal, false otherwise.

Definition at line 748 of file abg-diff-utils.h.

◆ operator()() [3/3]

bool operator() ( const weak_ptr< T >  first,
const weak_ptr< T >  second 
) const
inline

This equality operator compares pointers by comparing the pointed-to objects.

Parameters
firstthe first comparison argument.
secondthe second comparison argument.
Returns
true if the objects pointed to by the pointers are equal, false otherwise.

Definition at line 786 of file abg-diff-utils.h.


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