Removes elements of the this with the given name
.
The compare_type
determines hot to compare the names. If the all_occurrences
is set to
true, then every elements with the name
are removed, otherwise only the first occurrence is
removed.
this | |
compare_type |
a compare type, one of CompareType |
name |
a name to remove |
all_occurrences |
whether to remove all occurrences of the |
How many elements had been removed. |