compact_int_map library

CompactIntMap is a lightweight implementation of an integer-keyed map that efficiently stores key-value pairs using two parallel lists for keys and values. It supports operations such as adding, updating, retrieving, and removing mappings, along with utility methods to get the size of the map, clear it, and clone its contents.

Classes

CompactIntMap
A compact implementation of a map with integer keys and values. This class uses binary search for efficient key lookups and maintains the keys and values in separate lists.