Removes the element which is equal with the given one if the template is set to not allow duplicates.
Intended for use with structs and classes that can interface with the type of T through the cmp and equal
functions's overrides.
Returns the removed element, or E.init if not found.
structSortedList(E, alias cmp = "a < b", bool allowDuplicates = true, alias equal = "a == b")
Removes the element which is equal with the given one if the template is set to not allow duplicates. Intended for use with structs and classes that can interface with the type of T through the cmp and equal functions's overrides. Returns the removed element, or E.init if not found.