diff options
Diffstat (limited to 'src/mbgl/text/glyph_range.hpp')
-rw-r--r-- | src/mbgl/text/glyph_range.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mbgl/text/glyph_range.hpp b/src/mbgl/text/glyph_range.hpp index 644046d7f8..aa11b35f5e 100644 --- a/src/mbgl/text/glyph_range.hpp +++ b/src/mbgl/text/glyph_range.hpp @@ -2,9 +2,19 @@ #include <utility> #include <cstdint> +#include <unordered_set> +#include <boost/functional/hash.hpp> namespace mbgl { typedef std::pair<uint16_t, uint16_t> GlyphRange; +struct GlyphRangeHash { + std::size_t operator()(const GlyphRange& glyphRange) const { + return boost::hash_value(glyphRange); + } +}; + +typedef std::unordered_set<GlyphRange, GlyphRangeHash> GlyphRangeSet; + } // end namespace mbgl |