0

I haven't seen this syntax before, can someone explain me please?

std::array<int, 8> heights;
std::generate(begin(heights), end(heights), [](){ int x; std::cin >> x; return x;});
Daniel
  • 391
  • 4
  • 17

0 Answers0