1 #include <mbgl/util/font_stack.hpp>
2 
3 #include <boost/functional/hash.hpp>
4 #include <boost/algorithm/string/join.hpp>
5 
6 namespace mbgl {
7 
fontStackToString(const FontStack & fontStack)8 std::string fontStackToString(const FontStack& fontStack) {
9     return boost::algorithm::join(fontStack, ",");
10 }
11 
operator ()(const FontStack & fontStack) const12 std::size_t FontStackHash::operator()(const FontStack& fontStack) const {
13     return boost::hash_range(fontStack.begin(), fontStack.end());
14 }
15 
16 } // namespace mbgl
17