Panda3D
|
An STL function object class, this is intended to be used on any ordered collection of pointers to classes that contain an operator ==() method. More...
#include "stl_compares.h"
Public Member Functions | |
bool | is_equal (const Key &a, const Key &b) const |
Returns true if a is equal to b, false otherwise. More... | |
size_t | operator() (const Key &key) const |
Calls the Key's get_hash() method. More... | |
An STL function object class, this is intended to be used on any ordered collection of pointers to classes that contain an operator ==() method.
It defines the equality of the pointers via operator ==().
Since it doesn't define the ordering of the pointers, it can only be used with hash containers.
Definition at line 225 of file stl_compares.h.
|
inline |
Returns true if a is equal to b, false otherwise.
Definition at line 256 of file stl_compares.I.
Referenced by indirect_equals_hash< Key >::operator()().
|
inline |
Calls the Key's get_hash() method.
Definition at line 245 of file stl_compares.I.
References indirect_equals_hash< Key >::is_equal().
Referenced by indirect_method_hash< Key, indirect_compare_to< Key > >::operator()().