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