summaryrefslogtreecommitdiff
path: root/src/mbgl/util/font_stack.cpp
blob: fb3b1b60a26df851a60b7749a46bda67b5124490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <mbgl/util/font_stack.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