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
022c2f7255
@ -990,4 +990,18 @@ inline bool value::is_null() const
|
||||
|
||||
} // namespace mapnik
|
||||
|
||||
// support for std::unordered_xxx
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
struct hash<mapnik::value>
|
||||
{
|
||||
size_t operator()(mapnik::value const& val) const
|
||||
{
|
||||
return mapnik::mapnik_hash_value(val);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // MAPNIK_VALUE_HPP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user