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
  • 111
  • 1
  • 14

0 Answers0