CdmNode.opEquals

bool opEquals(const CdmNode other) const pure nothrow @trusted

Compares two CdmNode values for structural equality.

This performs a deep value comparison, not pointer comparison. Two nodes are equal if they have the same type and equivalent values. For containers (ARRAY, OBJECT, TAG), children and members are compared recursively.

Note

Metadata (location, format, comments) is NOT compared.

Only the semantic value content is considered.

Parameters

otherThe node to compare against.

Returns

true if both nodes have the same type and equivalent values.