Blender  V3.3
Public Member Functions | List of all members
blender::DefaultEquality Struct 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

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 338 of file BLI_hash_tables.hh.

Member Function Documentation

◆ operator()()

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

Definition at line 339 of file BLI_hash_tables.hh.

References Freestyle::a, and usdtokens::b().


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