I have a function that needs data in a std::vector but I have them as different data. so I have this code:
void UseData(int x, int y, int z)
{
std::vector<int> data;
data.pushback(x);
data.pushback(y);
data.pushback(z);
processData(data);
}
Is there any better way to put the data inside the std::vector?