23 auto& type_vector =
data_[agent->IsA()];
24 auto uid = agent->
GetUid();
29 type_vector.push_back(agent);
35 auto& type_vector =
data_[new_agent->IsA()];
36 type_vector[idx] = new_agent;
42 auto& type_vector =
data_[agent->IsA()];
43 if (idx == type_vector.size() - 1) {
44 type_vector.pop_back();
47 auto* reordered = type_vector.back();
48 type_vector[idx] = reordered;
49 type_vector.pop_back();
57 for (
auto& pair :
data_) {