diff options
Diffstat (limited to 'base/values.h')
-rw-r--r-- | base/values.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/values.h b/base/values.h index 07d4985..ac226fa 100644 --- a/base/values.h +++ b/base/values.h @@ -100,6 +100,10 @@ class Value { // Compares if two Value objects have equal contents. virtual bool Equals(const Value* other) const; + // Compares if two Value objects have equal contents. Can handle NULLs. + // NULLs are considered equal but different from Value::CreateNullValue(). + static bool Equals(const Value* a, const Value* b); + protected: // This isn't safe for end-users (they should use the Create*Value() // static methods above), but it's useful for subclasses. |