TwoWayMap.indexOf

Gets the index of an element of type A in the list of all elements of type A.

  1. size_t* indexOf(KeyType a)
    struct TwoWayMap(A)
    size_t*
    indexOf
  2. size_t* indexOf(cstring b)

Parameters

a KeyType

element to look up

Return Value

Type: size_t*

pointer to the index of an element of type A in this.keys_list, or null if the element is not in the map

Meta