libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
Hash< PBR >

Specialization of the adapter Hash for instances of PBR.

See also
Hash.

Public Member Functions

size_t operator() (PBR const &x) const
 Hash x using std::hash.
 
size_t operator() (PBR const &x) const
 Returns a hash value for x.
 

Member Function Documentation

◆ operator()() [1/2]

size_t operator() ( PBR const & x) const
inline

This call operator hashes x using std::hash with template parameter Value.

Parameters
xthe value to hash.
Returns
A hash value for x, a value of type size_t.

◆ operator()() [2/2]

size_t operator() ( PBR const & x) const
inline

Returns a hash value for x.

Parameters
xa PBR.
Returns
A value of size_t.
Exceptions
This function guarantees not to throw a LibsemigroupsException.
Complexity
Linear in degree().
See also
hash_value

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