xxxxxxxxxx
std::vector<Entity> entities;
for (Entity& entity : entities) {
entity.doStuff();
}
xxxxxxxxxx
for (auto &attack : m_attack) // access by reference to avoid copying
{
if (attack->m_num == input)
{
attack->makeDamage();
}
}