1 #include <utility>
2 
3 #pragma once
4 
5 namespace mbgl {
6 
7 template <class T>
8 class Range {
9 public:
Range(T min_,T max_)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 
17 template <class T>
operator ==(const Range<T> & a,const Range<T> & b)18 bool operator==(const Range<T>& a, const Range<T>& b) {
19     return a.min == b.min && a.max == b.max;
20 }
21 
22 template <class T>
operator !=(const Range<T> & a,const Range<T> & b)23 bool operator!=(const Range<T>& a, const Range<T>& b) {
24     return !(a == b);
25 }
26 
27 } // namespace mbgl
28