-xbt_dynar_t MSG_hosts_as_dynar() // XBT_ATTRIB_DEPRECATED_v330
-{
- size_t host_count = sg_host_count();
- sg_host_t* list = sg_host_list();
-
- xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t), nullptr);
- for (size_t i = 0; i < host_count; i++)
- xbt_dynar_push_as(res, sg_host_t, list[i]);
- xbt_free(list);
-
- return res;
-}