libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
Hash< Value, typename >
template<typename Value, typename = void>
struct libsemigroups::Hash< Value, typename >

Defined in adapters.hpp.

This type should be a stateless trivially default constructible with a call operator of signature size_t operator()(Value const&) for use with, for example, std::unordered_map.

Template Parameters
Valuethe type of objects to compare.

The second template parameter exists for SFINAE.

Used by:

Public Member Functions

size_t operator() (Value const &x) const
 Hash x using std::hash.
 

Member Function Documentation

◆ operator()()

template<typename Value, typename = void>
size_t operator() ( Value 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.

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