std::string& str)
{
vec.push_back(str);
}
which one do you prefer and why ?
for the first one you could go for emplace_back
Use emplace_back if you are moving
Dunno, probably the second. But maybe it's too artificial
Обсуждают сегодня