Get the index of the given pointer
The index of the pointer or -1 if the pointer is not registered
0.1.0
The pointer