BenchGen
BenchGen is a tool for generating benchmarks to stress-test a computing system.
Loading...
Searching...
No Matches
TokenVectorHash Struct Reference

Hash function object for a vector of Tokens. More...

#include <globalStructs.h>

Public Member Functions

size_t operator() (const std::vector< Token > &t) const
 Computes the hash value for a vector of Tokens.
 

Detailed Description

Hash function object for a vector of Tokens.

This structure provides a custom hash function for use in unordered containers such as std::unordered_map or std::unordered_set, where vectors of tokens are keys.

Member Function Documentation

◆ operator()()

size_t TokenVectorHash::operator() ( const std::vector< Token > & t) const
inline

Computes the hash value for a vector of Tokens.

Parameters
tThe vector of Tokens to hash.
Returns
A size_t hash value representing the vector of Tokens.

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