libabigail
Public Member Functions | List of all members
hash_interned_string Struct Reference

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. More...
 

Detailed Description

A functor to hash instances of interned_string.

Definition at line 200 of file abg-interned-str.h.

Member Function Documentation

◆ operator()()

size_t operator() ( const interned_string s) const
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.

Parameters
sthe instance of interned_string to hash.
Returns
the returned hash value.

Definition at line 213 of file abg-interned-str.h.


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