struct Point { int x, y; };
std::vector<Point> pts;
std::ranges::fill(pts, Point{0, 0});
// why do I have to name the type?
The compiler knows the element type. You know the element type. You still have to spell it out
Our mission is to make the C++ programming language accessible and useful to anyone who wishes to learn and apply the language.


