Blender V4.3
blender::DefaultEquality< T > Struct Template Reference

#include <BLI_hash_tables.hh>

Public Member Functions

template<typename T1 , typename T2 >
bool operator() (const T1 &a, const T2 &b) const
 

Detailed Description

template<typename T>
struct blender::DefaultEquality< T >

This struct provides an equality operator that returns true for all objects that compare equal when one would use the == operator. This is different from std::equal_to<T>, because that requires the parameters to be of type T. Our hash tables support lookups using other types without conversion, therefore DefaultEquality needs to be more generic.

Definition at line 287 of file BLI_hash_tables.hh.

Member Function Documentation

◆ operator()()

template<typename T >
template<typename T1 , typename T2 >
bool blender::DefaultEquality< T >::operator() ( const T1 & a,
const T2 & b ) const
inline

Definition at line 288 of file BLI_hash_tables.hh.

References b.


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