Macaulay2 Engine
Loading...
Searching...
No Matches
MonomHashEqual Class Reference

Equality functor on Monom (or Word), the KeyEqual companion of MonomHash for std::unordered_map<Monom, ...>. More...

#include <FreeMonoid.hpp>

Public Member Functions

 MonomHashEqual ()
 MonomHashEqual (const FreeMonoid &M)
 MonomHashEqual (const MonomHashEqual &M)
 MonomHashEqual (MonomHashEqual &M)
 ~MonomHashEqual ()
bool operator() (const Monom a, const Monom b) const
bool operator() (const Word a, const Word b) const

Private Attributes

const FreeMonoidmMonoid

Detailed Description

Equality functor on Monom (or Word), the KeyEqual companion of MonomHash for std::unordered_map<Monom, ...>.

Note
AI-generated documentation. Verify against the source before relying on it.

The Monom overload delegates to FreeMonoid::isEqual so the functor needs the monoid pointer (default-constructed instances hold nullptr — callers must rebind before use). The Word overload is a std::equal over the two iterator ranges and does not consult the monoid.

Definition at line 305 of file FreeMonoid.hpp.


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