0

I want to know if there is shorter way to push two arguments into vector

std::vector<vector> vec;
vec.push_back(1);
vec.push_back(2);

I want to write those two push_back lines in one line. Is it possible?

Bar Cohen
  • 51
  • 2
  • 5

0 Answers0