libabigail
|
A functor to hash instances of interned_string. More...
#include <abg-interned-str.h>
Public Member Functions | |
size_t | operator() (const interned_string &s) const |
The hash operator. | |
A functor to hash instances of interned_string.
Definition at line 200 of file abg-interned-str.h.
|
inline |
The hash operator.
It's super fast because hashing an interned string amounts to hashing the pointer to it's underlying string. It's because every distinct string is present only in one copy in the environment.
s | the instance of interned_string to hash. |
Definition at line 213 of file abg-interned-str.h.