1#include <utility>
2
3#pragma once
4
5namespace mbgl {
6
7template <class T>
8class Range {
9public:
10 constexpr Range(T min_, T max_)
11 : min(std::move(min_)), max(std::move(max_)) {}
12
13 T min;
14 T max;
15};
16
17template <class T>
18bool operator==(const Range<T>& a, const Range<T>& b) {
19 return a.min == b.min && a.max == b.max;
20}
21
22template <class T>
23bool operator!=(const Range<T>& a, const Range<T>& b) {
24 return !(a == b);
25}
26
27} // namespace mbgl
28

source code of qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/range.hpp