mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
add std::hash specialization for mapnik::value
This commit is contained in:
parent
4fe3c87a84
commit
b9ed80ecc8
@ -76,4 +76,17 @@ std::size_t mapnik_hash_value(T const& val)
|
||||
|
||||
} // namespace mapnik
|
||||
|
||||
// support for std::unordered containers
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
struct hash<mapnik::value>
|
||||
{
|
||||
size_t operator()(const mapnik::value& val) const
|
||||
{
|
||||
return mapnik::mapnik_hash_value(val);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif // MAPNIK_VALUE_HASH_HPP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user