mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
depth: use hash_all()
This commit is contained in:
parent
5d1922327e
commit
aa4ae755d8
@ -34,14 +34,13 @@
|
|||||||
#define DEPTH_H
|
#define DEPTH_H
|
||||||
|
|
||||||
#include "ue2common.h"
|
#include "ue2common.h"
|
||||||
|
#include "util/hash.h"
|
||||||
#include "util/operators.h"
|
#include "util/operators.h"
|
||||||
|
|
||||||
#ifdef DUMP_SUPPORT
|
#ifdef DUMP_SUPPORT
|
||||||
#include <string>
|
#include <string>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/functional/hash/hash_fwd.hpp>
|
|
||||||
|
|
||||||
namespace ue2 {
|
namespace ue2 {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -258,13 +257,11 @@ struct DepthMinMax : totally_ordered<DepthMinMax> {
|
|||||||
/** \brief Render as a string, useful for debugging. */
|
/** \brief Render as a string, useful for debugging. */
|
||||||
std::string str() const;
|
std::string str() const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inline size_t hash_value(const DepthMinMax &d) {
|
inline size_t hash_value(const DepthMinMax &d) {
|
||||||
size_t val = 0;
|
return hash_all(d.min, d.max);
|
||||||
boost::hash_combine(val, d.min);
|
|
||||||
boost::hash_combine(val, d.max);
|
|
||||||
return val;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user