Skip to content

Commit

Permalink
Add equality operator for JsonValue
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Nov 22, 2024
1 parent b3383f4 commit 3913c2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CesiumUtility/include/CesiumUtility/JsonValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,13 @@ class CESIUMUTILITY_API JsonValue final {
return std::holds_alternative<std::int64_t>(this->value);
}

/**
* @brief Returns `true` if two values are equal.
*/
inline bool operator==(const JsonValue& rhs) const noexcept {
return this->value == rhs.value;
};

/**
* @brief The actual value.
*
Expand Down

0 comments on commit 3913c2c

Please sign in to comment.