SortedList.searchBy

Looks up value a in the list, then returns the element equal with it. Returns E.init if not found. Intended for use with structs and classes that can interface with the type of T through the cmp and equal functions's overrides.

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

Meta