Files
MapLibreParticleLab/include/mbgl/util/range.hpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

29 lines
465 B
C++

#include <utility>
#pragma once
namespace mbgl {
template <class T>
class Range {
public:
constexpr Range(T min_, T max_)
: min(std::move(min_)),
max(std::move(max_)) {}
T min;
T max;
};
template <class T>
bool operator==(const Range<T>& a, const Range<T>& b) {
return a.min == b.min && a.max == b.max;
}
template <class T>
bool operator!=(const Range<T>& a, const Range<T>& b) {
return !(a == b);
}
} // namespace mbgl