ObjectList.indexOf

find child index for item by id, return -1 if not found

  1. int indexOf(T item)
  2. int indexOf(string id)
    struct ObjectList(T)
    static if(__traits(hasMember, T, "compareId"))
    int
    indexOf
    (
    string id
    )

Meta