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 199 of file stl_compares.h.
|
inline |
Returns true if a is equal to b, false otherwise.
Definition at line 211 of file stl_compares.I.
|
inline |
Calls the Key's get_hash() method.
Definition at line 202 of file stl_compares.I.