Equality test.
If T is Node, recursively compares all subnodes. This might be quite expensive if testing entire documents.
If T is not Node, gets a value of type T from the node and tests equality with that.
To test equality with a null YAML value, use YAMLNull.
true if equal, false otherwise.
1 auto node = Node(42); 2 3 assert(node == 42); 4 assert(node != "42"); 5 assert(node != "43"); 6 7 auto node2 = Node(YAMLNull()); 8 assert(node2 == YAMLNull());
See Implementation
Equality test.
If T is Node, recursively compares all subnodes. This might be quite expensive if testing entire documents.
If T is not Node, gets a value of type T from the node and tests equality with that.
To test equality with a null YAML value, use YAMLNull.