summaryrefslogtreecommitdiff
path: root/include/mbgl/style/style_property.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/style_property.hpp')
-rw-r--r--include/mbgl/style/style_property.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/style/style_property.hpp b/include/mbgl/style/style_property.hpp
index fc34078dec..0e261c5c77 100644
--- a/include/mbgl/style/style_property.hpp
+++ b/include/mbgl/style/style_property.hpp
@@ -17,6 +17,9 @@ public:
Value& getValue() { return value; }
Kind getKind() const { return kind; }
+ bool operator==(const StyleProperty& o) const { return kind == o.kind && value == o.value; }
+ bool operator!=(const StyleProperty& o) const { return !(*this == o); }
+
private:
Value value;
Kind kind = Kind::Undefined;