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

Equality comparison object for vectors of Tokens. More...

#include <globalStructs.h>

Public Member Functions

bool operator() (const std::vector< Token > &t1, const std::vector< Token > &t2) const
 Compares two vectors of Tokens for equality.
 

Detailed Description

Equality comparison object for vectors of Tokens.

This structure provides a custom equality 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()()

bool TokenVectorEqual::operator() ( const std::vector< Token > & t1,
const std::vector< Token > & t2 ) const
inline

Compares two vectors of Tokens for equality.

Parameters
t1The first vector of Tokens.
t2The second vector of Tokens.
Returns
True if both vectors contain the same tokens in the same order, otherwise false.

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