Making Code Happen

Tag: hash map

  • A Simple Hash Map

    Hash maps are used to store a mapping from one thing to another. In videogames they can be used to safely keep handles to objects that could be destroyed at any time. A unique handle is assigned to each game object and mapped to it’s pointer via a hash map. We can keep track of…

    Read more...