| 513 |
513 |
| 514 return iter; |
514 return iter; |
| 515 } |
515 } |
| 516 |
516 |
| 517 static int cx_kvl_change_capacity(struct cx_list_s *list, |
517 static int cx_kvl_change_capacity(struct cx_list_s *list, |
| 518 cx_attr_unused size_t cap) { |
518 CX_UNUSED size_t cap) { |
| 519 // since our backing list is a linked list, we don't need to do much here, |
519 // since our backing list is a linked list, we don't need to do much here, |
| 520 // but rehashing the map is quite useful |
520 // but rehashing the map is quite useful |
| 521 cx_kv_list *kv_list = (cx_kv_list*)list; |
521 cx_kv_list *kv_list = (cx_kv_list*)list; |
| 522 cxMapRehash(&kv_list->map->map_base.base); |
522 cxMapRehash(&kv_list->map->map_base.base); |
| 523 return 0; |
523 return 0; |