You're not mapping value passed into [ ] to number, that is hash in a way, that pointers align. Therefore this is not a hash-map.