All challenges
Multiple ChoiceBeginner 45s

Laziness of range views in C++20 ranges

How does a view adaptor such as std::views::filter process elements?
Options
  1. 1Eagerly, building a new container immediately
  2. 2Lazily, producing elements on demand as the view is iterated
  3. 3Only at compile time, never at runtime
  4. 4By copying the entire range into the heap first

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle