28#include <boost/container_hash/hash.hpp>
39 size_t operator()(
const Term& t)
const {
41 for (
size_t i = 0; i < t.
arity(); i++)
42 boost::hash_combine(hash, t[i]);
43 boost::hash_combine(hash, t.
get_v());
44 boost::hash_combine(hash, t.
get_f());
General representation of terms.
Variable * get_v() const
Self-explanatory access function.
Function * get_f() const
Self-explanatory access function.
Arity arity() const
Self-explanatory access function.
Hashing for terms using the Boost library.