SortedList.removeBy

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.

struct SortedList(E, alias cmp = "a < b", bool allowDuplicates = true, alias equal = "a == b")
@safe nothrow pure
static if(!allowDuplicates)
E
removeBy
(
T
)
(
T a
)

Meta