Node.contains
bool contains(T)(T rhs) constDetermine if a collection contains specified value.
If the node is a sequence, check if it contains the specified value. If it's a mapping, check if it has a value that matches specified value.
Parameters
rhs | Item to look for. Use YAMLNull to check for a null value. |
Returns
true if rhs was found, false otherwise.
Throws
NodeException if the node is not a collection.