SortedList.removeByElem

Removes the element which is equal with the given one if the template is set to not allow duplicates. Returns the removed element, or E.init if not found.

struct SortedList(E, alias cmp = "a < b", bool allowDuplicates = true, alias equal = "a == b")
@safe nothrow pure
E
removeByElem
(
E a
)

Meta