The size is necessary in free operations - unlike vectors and linked lists, sparse sets in libds are not dynamically resizable.