You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
421 B
25 lines
421 B
#ifndef STORM_UTILITY_HASH_H_
|
|
#define STORM_UTILITY_HASH_H_
|
|
|
|
#include <boost/functional/hash.hpp>
|
|
#include <functional>
|
|
#include <vector>
|
|
|
|
namespace storm {
|
|
namespace utility {
|
|
|
|
template<class T>
|
|
class Hash {
|
|
public:
|
|
static std::size_t getHash(std::vector<T> const& target) {
|
|
return boost::hash_range(target.begin(), target.end());
|
|
}
|
|
private:
|
|
Hash() {}
|
|
~Hash() {}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // STORM_UTILITY_HASH_H_
|